Enum RevocationType
Specifies the type of revocation to be considered during the LTV enable process and their corresponding actions.
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum RevocationType
Examples
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get the existing page.
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
//Create a new PdfSignature instance.
PdfSignature signature = new PdfSignature(loadedDocument, page, null, "Sig1");
//Create LTV with X509 public certificates.
signature.CreateLtv(certificates, RevocationType.OcspAndCrl);
//Save and close the PDF document.
loadedDocument.Save("output.pdf");
loadedDocument.Close(true);
Fields
Name | Description |
---|---|
Crl | Embeds the CRL data to the PDF document. |
Ocsp | Embeds the OCSP data to the PDF document. |
OcspAndCrl | Embeds both OCSP and CRL data to the PDF document. |
OcspOrCrl | Embeds OCSP or CRL data to the PDF document. |