Search Results for

    Show / Hide Table of Contents

    Class PdfDocumentExtensions

    Extension methods for PdfDocument class

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

    Methods

    ToDocument(IDocumentId, String, String)

    Convert a PdfDocument interface to a full PdfDocument

    Declaration
    public static PdfDocument ToDocument(this IDocumentId id, string Password = "", string OwnerPassword = "")
    Parameters
    Type Name Description
    IronSoftware.IDocumentId id

    DocumentId to convert

    System.String Password

    Pdf document password

    System.String OwnerPassword

    Pdf document owner password

    Returns
    Type Description
    PdfDocument

    Full PdfDocument

    Exceptions
    Type Condition
    System.InvalidCastException

    Failed to convert

    ☀
    ☾
    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.