menu

Document Processing

StoreType Class - C# PDF Library API Reference | Syncfusion

    Show / Hide Table of Contents

    StoreType Class

    Specifies the naming of a system store.

    Inheritance
    System.Object
    StoreType
    Namespace: Syncfusion.Pdf.Security
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public sealed class StoreType : Enum
    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 = "[email protected]";
    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 = "[email protected]"
    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

    AddressBook

    Certificate store for other users

    Declaration
    public const StoreType AddressBook
    Field Value
    Type
    StoreType

    AuthRoot

    Certificate store for third party certificate publishers

    Declaration
    public const StoreType AuthRoot
    Field Value
    Type
    StoreType

    CA

    Certification authority certificates.

    Declaration
    public const StoreType CA
    Field Value
    Type
    StoreType

    MY

    A certificate store that holds certificates with associated private keys.

    Declaration
    public const StoreType MY
    Field Value
    Type
    StoreType

    ROOT

    Root certificates.

    Declaration
    public const StoreType ROOT
    Field Value
    Type
    StoreType

    SPC

    Software Publisher Certificate.

    Declaration
    public const StoreType SPC
    Field Value
    Type
    StoreType

    TrustedPeople

    Certificate store for directly trusted people and resources

    Declaration
    public const StoreType TrustedPeople
    Field Value
    Type
    StoreType

    TrustedPublisher

    Certificate store for directly trusted publishers

    Declaration
    public const StoreType TrustedPublisher
    Field Value
    Type
    StoreType
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved