Search Results for

    Show / Hide Table of Contents

    Class PdfSignatureExtensions

    A class that represents a PDF signing certificate (.PFX or .p12) format which can be used to digitally sign a PDF. This protecting it from alteration.

    Inheritance
    System.Object
    PdfSignatureExtensions
    Namespace: IronPdf.Signing
    Assembly: IronPdf.dll
    Syntax
    public static class PdfSignatureExtensions : Object

    Methods

    SignPdfFile(PdfSignature, String, Boolean, String, String)

    Signs an existing PDF file.

    Declaration
    public static bool SignPdfFile(this PdfSignature signature, string pdfFilePath, bool removeOldSignatures = false, string userPassword = null, string ownerPassword = null)
    Parameters
    Type Name Description
    PdfSignature signature
    System.String pdfFilePath

    The PDF file path.

    System.Boolean removeOldSignatures

    if set to true old digital signatures are removed to ensure signing validity.

    System.String userPassword

    Optional user password if the PDF document is encrypted.

    System.String ownerPassword

    Optional owner password if the PDF document is encrypted.

    Returns
    Type Description
    System.Boolean

    true if successful.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.