Enum PdfPermissions

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

What a user who opens an encrypted document with the user password may do. Combine flags with |, or start from All and remove flags with & ~.

[Flags]
public enum PdfPermissions

Fields

None = 0

Nothing beyond viewing.

Print = 4

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

ModifyContents = 8

Modify the contents other than annotations, form filling and assembly.

CopyContent = 16

Copy or otherwise extract text and graphics.

ModifyAnnotations = 32

Add or modify annotations and fill in form fields.

FillForms = 256

Fill in existing form fields, even if ModifyAnnotations is not granted.

AssembleDocument = 1024

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

PrintHighQuality = 2048

Print at full quality.

All = Print | ModifyContents | CopyContent | ModifyAnnotations | FillForms | AssembleDocument | PrintHighQuality

All of the above.

Examples

PdfPermissions.All & ~(PdfPermissions.Print | PdfPermissions.PrintHighQuality) allows everything except printing.

Remarks

Permissions are advisory: conforming viewers enforce them, but they cannot stop someone who has the user password from decrypting the content.