pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

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.

Usage

pdfcpu properties add inFile nameValuePair...


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


Examples

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'