Common Flags

The following flags are used by most commands.Please refer to pdfcpu help + command for specific usage information.

verbose, v

Enables logging on the standard output.

vv

Very verbose.Enables verbose logging on the standard output.Please use this flag to report a bug.

pages, p

A comma separated list of expressions defining the selected pages of a PDF input file.

mode, m

Used by various commands.Please refer to validate, extract and encrypt for more information.

opw

Owner password_This is the password needed to change the access permissions.It is commonly also referred to as the _master password or the permissions password.Since some PDF readers skip over blank owner passwords pdfcpu makes this mandatory and non empty if you want to encrypt your documents with pdfcpu.

upw

User password_This is the password needed to open a PDF for reading.It is also known as the _open doc password.