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 = 0Nothing beyond viewing.
Print = 4Print the document (possibly at low quality unless PrintHighQuality is also set).
ModifyContents = 8Modify the contents other than annotations, form filling and assembly.
CopyContent = 16Copy or otherwise extract text and graphics.
ModifyAnnotations = 32Add or modify annotations and fill in form fields.
FillForms = 256Fill in existing form fields, even if ModifyAnnotations is not granted.
AssembleDocument = 1024Assemble the document: insert, rotate or delete pages and create bookmarks.
PrintHighQuality = 2048Print at full quality.
All = Print | ModifyContents | CopyContent | ModifyAnnotations | FillForms | AssembleDocument | PrintHighQualityAll 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.