A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Insert Pages

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


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


name description 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


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


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

pdfcpu page insert notes.pdf
inserting pages into notes.pdf ...
writing notes_new.pdf ...

Insert an empty page before pages 1 to 5:

pdfcpu page insert -pages 1-5 notes1.pdf notes2.pdf
inserting pages into notes1.pdf ...
writing notes2.pdf ...