From: Steinar H. Gunderson Date: Tue, 9 Aug 2005 14:36:36 +0000 (+0000) Subject: Add -f (-force) to the gnome-web-print command line. X-Git-Url: https://git.sesse.net/?p=webpdf;a=commitdiff_plain;h=5b43fd49a701b23138641508bbe47c97fbb2d173 Add -f (-force) to the gnome-web-print command line. --- diff --git a/createpdf.pl b/createpdf.pl index 0423330..1af0b87 100755 --- a/createpdf.pl +++ b/createpdf.pl @@ -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";