summaryrefslogtreecommitdiff
path: root/USE.md
blob: bdd3993b1c0639b01a0ac4ac0cd6bd04fc6b914e (plain)

Print

Direct print to Brother

Use pdf 1.3

Convert pdf:
localps2pdf (tab-complete - there are more options) Alternative:
pdftops + pstopdf13

Direct print odd format

pdftocairo -pdf -paper A4 infile outfile
pdftops %f
ps2pdf13 infile outfile

Resize PDF with crop marks

Ghostscript resizing is done by first defining target size and then tell to resize content to fit that target with FitPage.

For a PDF document containing bleed and/or crop marks, setting a simple target PAPERSIZE would either scale too much or (e.g. with -dUseArtBox) would loose bleed and crop marks. Instead we look up original width and height with the command pdfinfo and explicitly set those values scaled down by 21/29.7 (the ratio between A3 and A4 page formats).

Example command, for a PDF document with width 910.24 and height 1258.9:

gs -o output.pdf -sDEVICE=pdfwrite -dDEVICEWIDTHPOINTS=643.60333 -dDEVICEHEIGHTPOINTS=890.131 -dFIXEDMEDIA -dFitPage -dCompatibilityLevel=1.4 input.pdf