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 [-v(erbose)|vv] [-q(uiet)] -pages pageSelection [-upw userpw] [-opw ownerpw] inFile [outFile]


Flags

name description required
verbose turn on logging no
vv verbose logging no
quiet quiet mode no
pages page selection yes
upw user password no
opw owner password no


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 pag rem -pages 1-3,5 notes.pdf
removing pages from notes.pdf ...
writing notes_new.pdf ...