64.6 PDF Cropping
20200717 To crop a pdf document (multiple pages included) use
--margins. For example to remove crop marks from a book
proof in each of the four corners of the document, experimentation
might suggest a crop margin of
$ pdfcrop --margins -50 input.pdf output.pdf
View the resulting document:
$ evince output.pdf
Below we see the original at the top and the cropped version at the bottom. When printing, the image will generally be expanded to fit the page, though that is often a setting within the application controlling the printing.
To crop most of the lower portion of a page, noting that you may want to experiment with the 675 here:
$ pdfcrop --margins "0 0 0 -675" input.pdf output.pdf
The arguments to
<left> <top> <right> <bottom>.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0