[Tex/LaTex] A tool like pdfcrop2 that only *reduces margins from original* — as opposed to cropping and then allowing the addition of extra margins

marginspdfcrop

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 an absolute 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).

PDFCROP 1.5, 2004/06/24 - Copyright (c) 2002, 2004 by Heiko Oberdiek.
Patch 0.4, 2007/02/18 - Copyright (c) 2007 by Piotr Adacha.
Related Question