Enumerates the privileges for accessing Pdf file. Refer toPdfFileSecurity. Use this class before 2007/11/25. Aspose has replaced it to a new class DocumentPrivilege. Refer toDocumentPrivilege. Please use new class after that date.
Example
[C#]
PdfFileSecurity fileSecurity = new PdfFileSecurity("in.pdf","out.pdf");
fileSecurity.SetPrivilege(DocumentPrivilege.Assembly|DocumentPrivilege.Copy);
[Visual Basic]
Dim fileSecurity As PdfFileSecurity = New PdfFileSecurity("in.pdf","out.pdf")
fileSecurity.SetPrivilege(DocumentPrivilege.Assembly Or DocumentPrivilege.Copy)
Members
| Member Name | Description | Value |
| Copy | Allows copying file. | 16 |
| Print | Allows printing file. | 2052 |
| ModifyContents | Allows modifying file. | 8 |
| ModifyAnnotations | Allows modifying annotations of file. | 32 |
| FillIn | Allows filling forms in file. | 256 |
| ScreenReaders | Only permits to reader on screen. | 512 |
| Assembly | Allows assemblying file. | 1024 |
| DegradedPrinting | Allows degraded printing. | 4 |
| AllowAll | All allowed. | 3900 |
Requirements
Namespace: Aspose.Pdf.Kit
Assembly: Aspose.Pdf.Kit (in Aspose.Pdf.Kit.dll)
See Also
Aspose.Pdf.Kit Namespace