PDFCROP − crop pdf files to their minimal size.
pdfcrop [OPTIONS ...] input[.pdf] [output file]
pdfcrop is a utility to calculate and remove empty margins from each page in the input PDF file. The resulting output file occupies the minimal paper size needed for the contents and is therefore suitable for inclusion as a graphic
verbose printing (default: false)
debug informations (default: false)
call of ghostscript (default: gs)
call of pdfTeX (default: pdftex)
−−margins "<left> <top> <right> <bottom>"
(0 0 0 0) add extra margins, unit is bp. If only one number is given, then it is used for all margins, in the case of two numbers they are also used for right and bottom.
clipping support, if margins are set (default: false)
using ’%%HiResBoundingBox’ instead of ’%%BoundingBox’ (default: false)
parameter for gs’s −sPAPERSIZE=<foo>, use only with older gs versions <7.32
pdfcrop −−margins 10 input.pdf output.pdf
pdfcrop −−margins ’5 10 5 20’ −−clip input.pdf output.pdf
pdfcrop has been written by Heiko Oberdiek. This manual page has been written by Frank Küster for the Debian/GNU Linux distribution and may be freely used, modified and/or distributed by anyone.