A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Insert Pages

This command inserts empty pages:

Have a look at some examples.


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


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


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


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...