pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Insert Pages

This command inserts empty pages before ro after selected pages or before or after every page if no page is selected. Have a look at some examples.

Usage

pdfcpu pages insert [-v(erbose)|vv] [-q(uiet)] [-pages pageSelection] [-upw userpw] [-opw ownerpw] [-mode before|after] inFile [outFile]


Flags

name description default required
verbose turn on logging   no
vv verbose logging   no
quiet quiet mode   no
pages page selection   no
upw user password   no
opw owner password   no
mode before, after before no


Arguments

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


Examples

Insert an empty page before every page of in.pdf. This way you get a PDF that gives you space for adding annotations for pages:

pdfcpu page insert in.pdf
writing in.pdf...


Insert an empty page before pages 1 to 5:

pdfcpu page insert -pages 1-5 in.pdf out.pdf
writing out.pdf...


Insert an empty page after the last page:

pdfcpu page insert -pages l -mode after in.pdf out.pdf
writing out.pdf...