pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Insert Pages

This command inserts empty pages:

Have a look at some examples.

Usage

pdfcpu pages insert [-p(ages) selectedPages] [-m(ode) before|after] inFile [outFile]


Flags

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  
-o(ffline) disable http traffic  
c(onf) config dir $path, disable
opw owner password  
upw user password  
u(nit) display unit po(ints),in(ches),cm,mm


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 pages insert in.pdf
writing in.pdf...


Insert an empty page before pages 1 to 5:

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


Insert an empty page after the last page:

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