]> git.sesse.net Git - webpdf/commitdiff
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 04233306b166270661faf91ef7dae00d855c21cc..1af0b87771aa36957a63f00c2b4563696fcc7b7f 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";