Enum StoreType
Specifies the naming of a system store.
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum StoreType
Examples
// Creates a new document
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Find by subject.
PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion");
//Creates a signature.
PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature");
signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100));
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Save the document.
document.Save("output.pdf");
//Close the document.
document.Close(true);
' Creates a new document
Dim document As New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Find by subject.
Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion")
'Creates a signature.
Dim signature As New PdfSignature(document, page, storeCertificate, "Signature")
signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100))
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
'Save the document.
document.Save("output.pdf")
'Close the document.
document.Close(True)
Fields
Name | Description |
---|---|
AddressBook | Certificate store for other users |
AuthRoot | Certificate store for third party certificate publishers |
CA | Certification authority certificates. |
MY | A certificate store that holds certificates with associated private keys. |
ROOT | Root certificates. |
SPC | Software Publisher Certificate. |
TrustedPeople | Certificate store for directly trusted people and resources |
TrustedPublisher | Certificate store for directly trusted publishers |