From 17f40c0963604adf5b9e23720131147993a564fc Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 14 Aug 2010 14:49:40 +0200 Subject: [PATCH] render pdf files using ghostscript to pbm --- inkscape-render.pl | 7 +++++++ 1 file changed, 7 insertions(+) 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"; -- 2.20.1