pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Remove Pages

This command removes all selected pages from a PDF file. Have a look at some examples.

Usage

pdfcpu pages remove -p(ages) selectedPages inFile [outFile]


Flags

name description required
p(ages) selected pages yes


Common Flags

name description values
v(erbose) turn on logging  
vv verbose logging  
q(uiet) quiet mode  
-o(ffline) disable http traffic  
c(onf) config dir $path, disable
opw owner password  
upw user password  
u(nit) display unit po(ints),in(ches),cm,mm


Arguments

name description required
inFile PDF input file yes
outFile… PDF output file no


Examples

Remove pages 1-3 and 5 from notes.pdf:

$ pdfcpu pages rem -pages 1-3,5 notes.pdf
removing pages from notes.pdf ...
writing notes_new.pdf ...