Post

Trim margins from PDF document

https://linux-old.xvx.cz/2009/06/trim-margins-from-pdf-document/

It happened to me once that I wanted to trim margins from a PDF document.

It was a manual for the Panasonic G1 camera.

You can see huge margins there, because it was officially written for A5 paper and they created a manual for A4.

See the picture:

One page from Czech Panasonic DMC-G1 manual

I used pdfcrop script from Heiko Oberdiek, which can easily trim margins:

1
pdfcrop.pl --margins 10 panasonic_g1.pdf panasonic_g1-2.pdf

Here is the result:

Trimmed page from Czech Panasonic DMC-G1 manual

I hope this can be useful for somebody who needs this…

The KDE PDF viewer Okular has the function “Trim Margins”, which works very well, but you cannot save the PDF…

This post is licensed under CC BY 4.0 by the author.