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 [-p(ages) selectedPages] [-m(ode) before|after] inFile [outFile]


name description required values default
p(ages) selected pages no    
m(ode)   no before, after before

Common Flags

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


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