Enum PdfPermissionsFlags
Specifies the available permissions set for the signature.
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Base.dll
Syntax
[Flags]
public enum PdfPermissionsFlags
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
Name | Description |
---|---|
AccessibilityCopyContent | Copy accessibility content. |
AssembleDocument | Assemble document permission. (Only for 128 bits key). |
CopyContent | Copy content. |
Default | Default value. |
EditAnnotations | Add or modify text annotations, fill in interactive form fields. |
EditContent | Edit content. |
FillFields | Fill form fields. (Only for 128 bits key). |
FullQualityPrint | Full quality print. |
Print the document. |