View Single Post
Old 03-19-2011, 02:40 PM   #154
BoldlyDubious
what if...?
BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.BoldlyDubious ought to be getting tired of karma fortunes by now.
 
BoldlyDubious's Avatar
 
Posts: 209
Karma: 750870
Join Date: Feb 2011
Device: paper & electrophoretic
Quote:
Originally Posted by Cypriobrit View Post
does pdfcrop let you do crop the whole doc or do you do each page separately?
It crops all the document. Pdfcrop uses ghostscript to determine the bounding box of each page separately, and substitutes the page with its cropped version (so if the pages are different one from the other, every one of them is automatically optimized).
I use this command to call pdfcrop:

pdfcrop --resolution 72 --margin 10 --verbose NOMEFILE.pdf

--verbose make pdfcrop tell you what page it is currently processing
--resolution 72 avoids (useless) ultra-precision, greatly speeding up operations
--margin 10 puts a small margin (10pt) around text, to keep it from being too close to the screen's bezel

The program produces an output file called crop-NOMEFILE.pdf.
The only case when pdfcrop is prevented from doing a perfect work is when the original document has headers and/or footers close to the borders of the page, because the bounding box will include them.
BoldlyDubious is offline   Reply With Quote