I have a tool called pdfcrop2
that I've had for a while now. It's a perl script that fully crops PDF files to the actual content (removing all surrounding whitespace), and then allowing the addition of extra margins if one wants them.
However, does there exist a tool similar to this one that does not perform the initial crop, but rather limits itself to reducing the margins by a specified amount from the left, right, top and bottom?
This will be useful in cases where all of my one-page PDF files are all A4-sized but are not exactly of the same format. (Examples would be the initial pages of chapters vs. all other pages in a document with a book format. In these cases, it would be nice to get the same “predictable” effect on all pages.)
Best Answer
The
pdfcrop2
tool turned out to have anabsolute
option, which did what I needed.However, I'm on a Mac, and I needed to install
pdfinfo
using MacPorts.I should probably also record what version I'm using of
pdfcrop2
(shown with the--help
argument).