Examples (6)
Automatically detect and remove the margin for each page in a PDF file
pdfcrop path/to/input_file.pdf path/to/output_file.pdfSet the margins of each page to a specific value
Set the margins of each page to a specific value, using the same value for left, top, right, and bottom
pdfcrop path/to/input_file.pdf --margins 300 path/to/output_file.pdfUse a user-defined bounding box for cropping instead of automatically detecting it
Use different user-defined bounding boxes for odd and even pages
Automatically detect margins using a lower resolution for improved performance
pdfcrop path/to/input_file.pdf --resolution 72 path/to/output_file.pdfmade by @shridhargupta | data from tldr-pages