Class PdfCertificationFlags
Specifies the available permissions on certificated document.
Inheritance
System.Object
PdfCertificationFlags
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfCertificationFlags : Enum
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123");
PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature");
signature.DocumentPermissions = PdfCertificationFlags.AllowComments;
doc.Save("SignedPdfSample.pdf");
doc.Close(true);
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Create a page
Dim page As PdfPage = doc.Pages.Add()
Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123")
Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature")
signature.DocumentPermissions = PdfCertificationFlags.AllowComments
doc.Save("SignedPdfSample.pdf")
doc.Close(True)
Fields
AllowComments
Only allow commenting and form fill-in actions on this document.
Declaration
public const PdfCertificationFlags AllowComments
Field Value
Type |
---|
PdfCertificationFlags |
AllowFormFill
Only allow form fill-in actions on this document.
Declaration
public const PdfCertificationFlags AllowFormFill
Field Value
Type |
---|
PdfCertificationFlags |
ForbidChanges
Restrict any changes to the document.
Declaration
public const PdfCertificationFlags ForbidChanges
Field Value
Type |
---|
PdfCertificationFlags |