Enum RevocationType
- Namespace
- Syncfusion.Pdf.Security
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the type of revocation to be considered during the LTV enable process and their corresponding actions.
public enum RevocationType
Fields
Crl = 1
Embeds the CRL data to the PDF document.
Ocsp = 0
Embeds the OCSP data to the PDF document.
OcspAndCrl = 2
Embeds both OCSP and CRL data to the PDF document.
OcspOrCrl = 3
Embeds OCSP or CRL data to the PDF document.
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);