02 June, 2009

Trim margins from PDF document

It's happened to me one time, that I want to trim margins from PDF document.

It was a Czech manual for Panasonic G1 camera. You can see huge margins there, because it was officially written for A5 paper and they create manual for A4 paper size.

See the picture:
One page from Czech Panasonic DMC-G1 manual
One page from Czech Panasonic DMC-G1 manual

I used pdfcrop script from Heiko Oberdiek, which can easily trim margins.
pdfcrop.pl --margins 10 panasonic_g1.pdf panasonic_g1-2.pdf

Here is the result:
Trimmed page from Czech Panasonic DMC-G1 manual
Trimmed page from Czech Panasonic DMC-G1 manual

I hope this can be useful for somebody who needs this...
KDE pdf viewer Okular, has the function "Trim Margins", which works very well, but you can not save the PDF...

1 comment:

  1. Hey! Thank you very much! I was looking around to find a way to trim margins of my scientific ebooks so to read them on my small ebook reader. Your hint was very useful for me!

    ReplyDelete

Note: only a member of this blog may post a comment.