Class PdfDocumentSecureStore
This class represents the secure store for a PDF document, providing access to document security details.
Inheritance
System.Object
PdfDocumentSecureStore
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public class PdfDocumentSecureStore : Object
Properties
Certificates
Retrieves an array of X509Certificate2 objects that represent the certificates stored within the document's secure store (DSS).
Declaration
public X509Certificate2[] Certificates { get; }
Property Value
Type |
---|
System.Security.Cryptography.X509Certificates.X509Certificate2[] |
Examples
//Load the existing PDF document.
PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream);
//Get the document secure store.
PdfDocumentSecureStore dss = ldoc.DocumentSecureStore;
//Get the certificates from document secure store.
X509Certificate2[] certificates = dss.Certificates;
//Close the document
document.Close(true);