
A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
Generate a trimmed version of inFile for selected pages. Have a look at some examples.
pdfcpu trim inFile [outFile] [flags]
| name | description | required |
|---|---|---|
| p(ages) | selected pages | yes |
| name | description | required | default |
|---|---|---|---|
| inFile | PDF input file | yes | |
| outFile | PDF output file | no | inFile |
The following PDF elements are not carried over into the trimmed document:
Get rid of unwanted blank pages:
$ pdfcpu trim --pages even test.pdf test_trimmed.pdf
$ pdfcpu trim -p 1 test.pdf firstPage.pdf
$ pdfcpu trim book.pdf essence.pdf --pages '!2-4,!12-'