From: Dobrica Pavlinusic Date: Wed, 15 Mar 2017 10:38:29 +0000 (+0100) Subject: fix rendering size X-Git-Url: http://git.rot13.org/?p=Printer-EVOLIS.git;a=commitdiff_plain;h=c877e3252359808e9c18a79bc7af919d4bedc451;hp=365c90d7f08fbacf30a9218f3ed8f0bde3786045 fix rendering size --- 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};