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
| Name | Type | Access | Description |
|---|---|---|---|
AllowPrint | bool | Read/Write | Allow printing (bit 3). |
AllowModifyContents | bool | Read/Write | Allow modification of contents (bit 4). |
AllowCopy | bool | Read/Write | Allow copying or extracting text and graphics (bit 5). |
AllowModifyAnnotations | bool | Read/Write | Allow adding or modifying annotations (bit 6). |
AllowFillIn | bool | Read/Write | Allow filling in form fields (bit 9). |
AllowScreenReaders | bool | Read/Write | Allow extracting text for accessibility (bit 10). |
AllowAssembly | bool | Read/Write | Allow document assembly (bit 11). |
AllowDegradedPrinting | bool | Read/Write | Allow degraded (low-resolution) printing. |
ChangeAllowLevel | int | Read/Write | Composite change-allowed level derived from the modify permission bits. |
CopyAllowLevel | int | Read/Write | Composite copy-allowed level derived from the copy and accessibility bits. |
PrintAllowLevel | int | Read/Write | Composite print-allowed level derived from the print and print-quality bits. |
AllowAll | DocumentPrivilege | Read | All permissions granted. |
ForbidAll | DocumentPrivilege | Read | No permissions (most restrictive). |
Print | DocumentPrivilege | Read | Allows printing only. |
ModifyContents | DocumentPrivilege | Read | Allows modifying contents only. |
Copy | DocumentPrivilege | Read | Allows copying only. |
ModifyAnnotations | DocumentPrivilege | Read | Allows modifying annotations only. |
FillIn | DocumentPrivilege | Read | Allows filling in form fields only. |
ScreenReaders | DocumentPrivilege | Read | Allows screen-reader extraction only. |
Assembly | DocumentPrivilege | Read | Allows document assembly only. |
DegradedPrinting | DocumentPrivilege | Read | Allows degraded printing only. |
méthodes
| Signature | Description |
|---|---|
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