Class PdfPermissionsFlags
Specifies the available permissions set for the signature.
Inheritance
System.Object
PdfPermissionsFlags
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public sealed class PdfPermissionsFlags : Enum
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
// Set the documents permission settings
doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit;
doc.Security.OwnerPassword = "Syncfusion";
doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations;
doc.Security.UserPassword = "123";
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10));
doc.Save("Security.pdf");
doc.Close(true);
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Set the documents permission settings
doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit
doc.Security.OwnerPassword = "Syncfusion"
doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations
doc.Security.UserPassword = "123"
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = doc.Pages.Add()
Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10))
doc.Save("Security.pdf")
doc.Close(True)
Fields
AccessibilityCopyContent
Copy accessibility content.
Declaration
public const PdfPermissionsFlags AccessibilityCopyContent
Field Value
Type |
---|
PdfPermissionsFlags |
AssembleDocument
Assemble document permission. (Only for 128 bits key).
Declaration
public const PdfPermissionsFlags AssembleDocument
Field Value
Type |
---|
PdfPermissionsFlags |
CopyContent
Copy content.
Declaration
public const PdfPermissionsFlags CopyContent
Field Value
Type |
---|
PdfPermissionsFlags |
Default
Default value.
Declaration
public const PdfPermissionsFlags Default
Field Value
Type |
---|
PdfPermissionsFlags |
EditAnnotations
Add or modify text annotations, fill in interactive form fields.
Declaration
public const PdfPermissionsFlags EditAnnotations
Field Value
Type |
---|
PdfPermissionsFlags |
EditContent
Edit content.
Declaration
public const PdfPermissionsFlags EditContent
Field Value
Type |
---|
PdfPermissionsFlags |
FillFields
Fill form fields. (Only for 128 bits key).
Declaration
public const PdfPermissionsFlags FillFields
Field Value
Type |
---|
PdfPermissionsFlags |
FullQualityPrint
Full quality print.
Declaration
public const PdfPermissionsFlags FullQualityPrint
Field Value
Type |
---|
PdfPermissionsFlags |
Print the document.
Declaration
public const PdfPermissionsFlags Print
Field Value
Type |
---|
PdfPermissionsFlags |