+if ($url =~ /^http/i) {
+ $outname = "web.pdf";
+
+ # Render through Gecko
+ $ENV{'DISPLAY'} = $pdfweb::config::xserver;
+ system("gnome-web-print", $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) {