Change Owner Password

This command changes the password which is also known as the set permissions password or the master password. Have a look at some examples.

Usage

  1. usage: pdfcpu changeopw [-v(erbose)|vv] [-upw userpw] inFile opwOld opwNew

Flags

namedescriptionrequired
verboseturn on loggingno
vvverbose loggingno
upwuser passwordif set

Arguments

namedescriptionrequired
inFilePDF input fileyes
opwOldcurrent owner passwordyes
opwNewnew owner passwordyes, must not be empty!

Examples

You have to set the owner password when you encrypt a file and you can change it anytime later with changeopw.

Change the owner password:

  1. pdfcpu encrypt -opw opw enc.pdf
  2. writing enc.pdf ...
  3. pdfcpu changeopw enc.pdf opw opwNew
  4. writing enc.pdf ...