T_PDFiumSharp_DocumentPermissions - ArgusMagnus/PDFiumSharp GitHub Wiki

DocumentPermissions Enumeration

Flags specifying document permissions.

Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0

Syntax

C#

[FlagsAttribute]
public enum DocumentPermissions

Members

 

Member name Value Description
Print 4 For SecurityHandlerRevision of 2: Print the document. For SecurityHandlerRevision of 3 or greater: Print the document (possibly not at the highest quality level, depending on whether PrintHighQuality is also set).
Modify 8 Modify the contents of the document by operations other than those controlled by ModfiyAnnotations, FillInForms and AssembleDocument.
ExtractTextAndGraphics 16 For SecurityHandlerRevision of 2: Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to users with disabilities or for other purposes). For SecurityHandlerRevision of 3 or greater: Copy or otherwise extract text and graphics from the document by operations other than that controlled by ExtractTextAndGraphics2.
ModfiyAnnotations 32 Add or modify text annotations, fill in interactive form fields, and, if Modify is also set, create or modify interactive form fields (including signature fields).
FillInForms 256 For SecurityHandlerRevision of 3 or greater: Fill in existing interactive form fields (including signature fields), even if ModfiyAnnotations is not set.
ExtractTextAndGraphics2 512 For SecurityHandlerRevision of 3 or greater: Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
AssembleDocument 1024 For SecurityHandlerRevision of 3 or greater: Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if Modify is not set.
PrintHighQuality 2048 For SecurityHandlerRevision of 3 or greater: Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When PrintHighQuality is not set (and Print is set), printing is limited to a low-level representation of the appearance, possibly of degraded quality.

See Also

Reference

PDFiumSharp Namespace
PdfDocument.SecurityHandlerRevision
PDFium.FPDF_GetSecurityHandlerRevision(FPDF_DOCUMENT)

Other Resources

PDF Reference: Table 22

⚠️ **GitHub.com Fallback** ⚠️