pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

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

pdfcpu changeopw inFile opwOld opwNew [flags]

Common Flags


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:

$ pdfcpu encrypt enc.pdf --opw opw
writing enc.pdf ...

$ pdfcpu changeopw enc.pdf opw opwNew
writing enc.pdf ...