Search Results for

    Show / Hide Table of Contents

    Class QPdfClient<T>

    Inheritance
    System.Object
    QPdfClient<T>
    Implements
    System.IDisposable
    Namespace: IronSoftware.Pdfium
    Assembly: IronPdf.dll
    Syntax
    public abstract class QPdfClient<T> : Object, IDisposable, IQPdfClient where T : QPdfDeploymentBase
    Type Parameters
    Name Description
    T

    Constructors

    QPdfClient(Boolean)

    Declaration
    protected QPdfClient(bool deployQpdf = true)
    Parameters
    Type Name Description
    System.Boolean deployQpdf

    Methods

    CompleteSavingAsPdfA4(IDocumentId, String, String)

    Applies final PDF/A-4 specific flags and saves the provided PDF content using QPdf.

    Declaration
    public void CompleteSavingAsPdfA4(IDocumentId documentId, string outputPath, string password = "")
    Parameters
    Type Name Description
    IronSoftware.IDocumentId documentId

    The id of the input document.

    System.String outputPath

    The file path where the PDF should be saved.

    System.String password

    An optional password to encrypt the PDF. Pass null or an empty string for no password.

    Remarks

    Note: IronSoftware.Pdfium.IPdfClient.ConvertToPdfA(IronSoftware.IDocumentId,System.Byte[],IronPdf.InternalPdfAVersion) should be called before invoking this method to perform the actual conversion.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown if documentId is null.

    System.IO.IOException

    Thrown if there is an error retrieving the PDF bytes from the native PDF library.

    System.Exception

    Thrown if the QPdf handle creation, reading, initialization, or writing fails.

    Dispose()

    Declaration
    public virtual void Dispose()

    IsLinearized(String, String)

    Check if a file is linearized or not

    Declaration
    public bool IsLinearized(string path, string password)
    Parameters
    Type Name Description
    System.String path

    file path where the linearized file is located

    System.String password

    password of the pdf content

    Returns
    Type Description
    System.Boolean

    Returns true if the file is linearized, otherwise returns false

    SaveAsLinearized(IDocumentId, String, String)

    Save PDF document as a linearized PDF file

    Declaration
    public void SaveAsLinearized(IDocumentId id, string path, string password)
    Parameters
    Type Name Description
    IronSoftware.IDocumentId id

    id of the document

    System.String path

    path where the linearized file will be saved

    System.String password

    password of the pdf content

    SaveAsLinearized(Byte[], String, String)

    Save PDF document as a linearized PDF file

    Declaration
    public void SaveAsLinearized(byte[] pdfBytes, string path, string password)
    Parameters
    Type Name Description
    System.Byte[] pdfBytes
    System.String path

    path where the linearized file will be saved

    System.String password

    password of the pdf content

    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.