From: Dobrica Pavlinusic Date: Sat, 14 Aug 2010 12:49:40 +0000 (+0200) Subject: render pdf files using ghostscript to pbm X-Git-Tag: Printer-EVOLIS-0.01~70 X-Git-Url: http://git.rot13.org/?p=Printer-EVOLIS.git;a=commitdiff_plain;h=17f40c0963604adf5b9e23720131147993a564fc render pdf files using ghostscript to pbm --- diff --git a/inkscape-render.pl b/inkscape-render.pl index b8e7360..12af5f5 100755 --- a/inkscape-render.pl +++ b/inkscape-render.pl @@ -68,6 +68,13 @@ print $inkscape "$out.svg --export-png $out.png --export-dpi 300\n"; close($inkscape); +foreach my $pdf ( glob "$out*.pdf" ) { + my $pbm = $pdf; + $pbm =~ s/pdf$/pbm/; + warn "# rendering $pdf => $pbm using ghostscript\n"; + system "gs -dNOPAUSE -dBATCH -q -r300x300 -dDEVICEWIDTHPOINTS=243 -dDEVICEHEIGHTPOINTS=155 -sDEVICE=pbmraw -sOutputFile=$pbm -f $pdf"; +} + __END__ #system "inkscape --file $out.print.svg --export-pdf $out.pdf";