DocumentPrivilege

DocumentPrivilege

Overview

DocumentPrivilege is a class in Aspose.PDF FOSS for .NET. Inherits from: IComparable<object>.

Represents document access permissions (P value in encryption dictionary).

This class provides 3 methods for working with DocumentPrivilege objects in .NET programs. Available methods include: CompareTo, DocumentPrivilege. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: AllowAll, AllowAssembly, AllowCopy, AllowDegradedPrinting, AllowFillIn, AllowModifyAnnotations, and 15 more.

Properties

NameTypeAccessDescription
AllowPrintboolRead/WriteAllow printing (bit 3).
AllowModifyContentsboolRead/WriteAllow modification of contents (bit 4).
AllowCopyboolRead/WriteAllow copying or extracting text and graphics (bit 5).
AllowModifyAnnotationsboolRead/WriteAllow adding or modifying annotations (bit 6).
AllowFillInboolRead/WriteAllow filling in form fields (bit 9).
AllowScreenReadersboolRead/WriteAllow extracting text for accessibility (bit 10).
AllowAssemblyboolRead/WriteAllow document assembly (bit 11).
AllowDegradedPrintingboolRead/WriteAllow degraded (low-resolution) printing.
ChangeAllowLevelintRead/WriteComposite change-allowed level derived from the modify permission bits.
CopyAllowLevelintRead/WriteComposite copy-allowed level derived from the copy and accessibility bits.
PrintAllowLevelintRead/WriteComposite print-allowed level derived from the print and print-quality bits.
AllowAllDocumentPrivilegeReadAll permissions granted.
ForbidAllDocumentPrivilegeReadNo permissions (most restrictive).
PrintDocumentPrivilegeReadAllows printing only.
ModifyContentsDocumentPrivilegeReadAllows modifying contents only.
CopyDocumentPrivilegeReadAllows copying only.
ModifyAnnotationsDocumentPrivilegeReadAllows modifying annotations only.
FillInDocumentPrivilegeReadAllows filling in form fields only.
ScreenReadersDocumentPrivilegeReadAllows screen-reader extraction only.
AssemblyDocumentPrivilegeReadAllows document assembly only.
DegradedPrintingDocumentPrivilegeReadAllows degraded printing only.

Methods

SignatureDescription
DocumentPrivilege()Create a privilege set with no permissions (most restrictive).
DocumentPrivilege(other: DocumentPrivilege)Create a copy of an existing privilege.
CompareTo(obj: object?)Calls CompareTo on this DocumentPrivilege instance.

See Also