X-Git-Url: http://git.rot13.org/?p=Printer-EVOLIS.git;a=blobdiff_plain;f=scripts%2Finkscape-render.pl;h=37456786c8f8f26efe2c56ba576d3adee0004c97;hp=f1236a319e11f3e3f3ee425d896244b437d03c37;hb=c877e3252359808e9c18a79bc7af919d4bedc451;hpb=365c90d7f08fbacf30a9218f3ed8f0bde3786045 diff --git a/scripts/inkscape-render.pl b/scripts/inkscape-render.pl index f1236a3..3745678 100755 --- a/scripts/inkscape-render.pl +++ b/scripts/inkscape-render.pl @@ -73,7 +73,7 @@ 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"; + system "gs -dNOPAUSE -dBATCH -q -r300x300 -dDEVICEWIDTHPOINTS=243 -dDEVICEHEIGHTPOINTS=155 -dPDFFitPage -sDEVICE=pbmraw -sOutputFile=$pbm -f $pdf"; } system "pdftk $out.front.pdf $out.back.pdf cat output $out.duplex.pdf" if $ENV{DUPLEX};