Add -f (-force) to the gnome-web-print command line.
authorSteinar H. Gunderson <sesse@samfundet.no>
Tue, 9 Aug 2005 14:36:36 +0000 (14:36 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Tue, 9 Aug 2005 14:36:36 +0000 (14:36 +0000)
createpdf.pl

index 0423330..1af0b87 100755 (executable)
@@ -60,7 +60,7 @@ if ($url =~ /^http/i) {
 
        # Render through Gecko
        $ENV{'DISPLAY'} = $pdfweb::config::xserver;
-       system("gnome-web-print", $url, "$pdfweb::config::outputdir/$pdf_filename.ps");
+       system("gnome-web-print", "-f", $url, "$pdfweb::config::outputdir/$pdf_filename.ps");
        system("gs $pdfopts -dCompatbilityLevel=1.4 -dNOPAUSE -dPATCH -sDEVICE=pdfwrite -dSAFER -sOutputFile=output/$pdf_filename -c '.setpdfwrite $psopts' -f - < $pdfweb::config::outputdir/$pdf_filename.ps >&2");
 } elsif ($filename =~ /(.*)\.(?:e?ps|pdf)$/i) {
        $outname = "$1.pdf";