Search Results for

    Show / Hide Table of Contents

    Class PdfDocument

    Inheritance
    System.Object
    PdfDocument
    Implements
    System.IDisposable
    Namespace: PdfToSvg
    Assembly: IronPdf.dll
    Syntax
    public sealed class PdfDocument : Object

    Properties

    Info

    Declaration
    public DocumentInfo Info { get; }
    Property Value
    Type Description
    DocumentInfo

    IsEncrypted

    Declaration
    public bool IsEncrypted { get; }
    Property Value
    Type Description
    System.Boolean

    Pages

    Declaration
    public PdfPageCollection Pages { get; }
    Property Value
    Type Description
    PdfPageCollection

    Permissions

    Declaration
    public DocumentPermissions Permissions { get; }
    Property Value
    Type Description
    DocumentPermissions

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Open(Stream, Boolean, OpenOptions, CancellationToken)

    Declaration
    public static PdfDocument Open(Stream stream, bool leaveOpen = false, OpenOptions options = null, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Boolean leaveOpen
    OpenOptions options
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    PdfDocument

    Open(String, OpenOptions, CancellationToken)

    Declaration
    public static PdfDocument Open(string path, OpenOptions options = null, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String path
    OpenOptions options
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    PdfDocument

    OpenAsync(Stream, Boolean, OpenOptions, CancellationToken)

    Declaration
    public static Task<PdfDocument> OpenAsync(Stream stream, bool leaveOpen = false, OpenOptions options = null, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Boolean leaveOpen
    OpenOptions options
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<PdfDocument>

    OpenAsync(String, OpenOptions, CancellationToken)

    Declaration
    public static Task<PdfDocument> OpenAsync(string path, OpenOptions options = null, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String path
    OpenOptions options
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<PdfDocument>

    Implements

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