A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Add Properties

This command adds property name/value pairs to a PDF document. Have a look at some examples.

You can also set the PDFs Title, Subject and Author.


pdfcpu properties add inFile nameValuePair...

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
nameValuePair ‘name = value’ yes


Adding a property:

$ pdfcpu properties add in.pdf name = value
$ pdfcpu properties add in.pdf 'name = value'

Adding two properties:

$ pdfcpu properties add in.pdf 'name1 = value1' 'name2 = value2'

Setting Title and Author:

$ pdfcpu properties add in.pdf 'Title = My title' 'Author = Me'