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... [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input fileyes
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'