Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

PDF Cropping

20200717 To crop a pdf document (multiple pages included) use pdfcrop with –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 -50 works.

  $ pdfcrop --margins -50 input.pdf output.pdf
  $ 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.

Figure 67.1: The effect of cropping the margins of a pdf document.
Image pdfcrop-essentials

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 –margins are <left> <top> <right> <bottom>.


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.