DocumentPrivilege

DocumentPrivilege

Vue de l’ensemble

‘DocumentPrivilege’ est une classe dans Aspose.PDF FOSS pour .NET. hérite de: ‘IComparable’.

Il représente les autorisations d’accès au document (valeur P dans le dictionnaire de cryptage).

Cette classe fournit 3 méthodes pour travailler avec les objets DocumentPrivilege dans des programmes .NET. Les méthodologies disponibles comprennent: ‘CompareTo’, ‘DocumentPribiloge’. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.PDF FOSS pour le package .net. Propriétés: AllowAll, AllowAssembly , allowCopy et plus.

Propriétés

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.

méthodes

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.

Voir aussi

  • Aspose.PDF pour .NET — API d’entreprise