PeachPDF

PeachPDF

PdfPermissions Enum

The operations a PDF reader may allow a person who opened an encrypted document with its <em>user</em> password. A person who opens it with the <em>owner</em> password is never restricted. A reader enforces these voluntarily: they are a request made of well-behaved software, not a cryptographic barrier, because anyone who can open the document can read its content.

public enum PdfPermissions

Fields

None 0

Nothing is allowed beyond opening and viewing the document.

AllowPrint 4

Print the document (at low quality unless AllowHighQualityPrint is also set).

AllowModify 8

Modify the content of the document by operations other than those covered by the other flags.

AllowCopy 16

Copy or extract text and graphics from the document (the copy/paste permission).

AllowAnnotations 32

Add or modify text annotations and, together with AllowFillForms, interactive form fields.

AllowFillForms 256

Fill in existing interactive form fields, including signature fields.

AllowAccessibilityExtract 512

Extract text and graphics to support accessibility (screen readers).

AllowAssemble 1024

Assemble the document: insert, rotate or delete pages and create bookmarks or thumbnails.

AllowHighQualityPrint 2048

Print a faithful, full-resolution copy. Only meaningful together with AllowPrint.

ReadOnly 2580

A read-only document: it can be viewed, printed, copied from and read by assistive technology, but not modified, annotated, filled in or reassembled.

All 3900

Every operation is allowed.

Remarks

Each value is the corresponding bit of the PDF permissions word (ISO 32000-2, Table 22), so the flags combine freely. Start from All and clear what to forbid, or from None and add what to allow.