![]() |
GNU/Linux Desktop Survival Guide
by Graham Williams |
![]() |
|||
Cropping a PDF |
20180528 There are times and circumstances where it is
useful to crop a pdf document. For
example, when producing the pdf for my book titled
The Essentials of Data Science I placed crop marks in each of
the four corners. From this original version I wanted to extract just
the printable page. Through experimentation I found that introducing a
margin of did the trick.
$ pdfcrop --margins -50 input.pdf output.pdf $ evince output.pdf |
The original and result can be seen in Figure 66.1. The original is at the top of the figure and the cropped version, using pdfcrop with –margins 50, is 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.