Encrypt

Encrypt a PDF with the standard PDF security handler, 40-bit or 128-bit encryption. Encrypt can directly re-encrypt PDFs, substantially upgrading security of older PDFs by strengthening encryption from 40 bits to 128 bits. Furthermore, set restrictions on document use, such as preventing high quality printing or copy and paste.

Options

java tool.pdf.Encrypt [options] PDF-files-or-directories
In the absence of -inplace, the encrypted version of the PDF is named with -y appended to the original file name.

Example

Encrypt with user password xxx and owner password yyy, and allow printing but not copy and paste or other manipulation.

java tool.pdf.Encrypt -user xxx -owner yyy -perm pP Annotations.pdf