📜  ubuntu crop pdf - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:48:06.444000             🧑  作者: Mango

Ubuntu Crop PDF - Shell-Bash

Ubuntu Crop PDF is a simple command-line tool that helps you to crop PDF files in Ubuntu using Shell-Bash. It can be used to crop a single page or multiple pages from a PDF file.

Installation:

You can install it in Ubuntu using the following command:

sudo apt-get install pdfcrop
Usage:
pdfcrop input.pdf output.pdf

This will crop the pages in the input PDF file and save the cropped PDF to the output file.

You can also specify the pages that you want to crop using the following syntax:

pdfcrop --pages "range" input.pdf output.pdf

For example, to crop the first three pages of a PDF file, you can use the following command:

pdfcrop --pages "1-3" input.pdf output.pdf
Conclusion:

Ubuntu Crop PDF is a useful tool for quickly cropping PDF files from the command line. It is easy to install and use, you just need to specify the pages you want to crop and the output file name.