Search Results for

    Show / Hide Table of Contents

    Class CompressionOptions

    Various compression options for reducing the size of a PDF document

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

    Constructors

    CompressionOptions()

    Declaration
    public CompressionOptions()

    Properties

    CompressImages

    Compress existing images using JPG encoding and the specified settings

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

    HighQualityImageSubsampling

    True to use 444 chroma subsampling for a higher quality image. False to use 411 chrome subsampling to further reduce the image size.

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

    JpegQuality

    JPEG quality (1 - 100) to use during image compression

    Declaration
    public int JpegQuality { get; set; }
    Property Value
    Type Description
    System.Int32

    RemoveStructureTree

    Remove document struct tree information which describes the logical layout of the document.

    Removing the "structure tree" can significantly reduce the disk space used by the document.

    Removing the "structure tree" of a complicated document can negatively impact text selection.

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

    ShrinkImages

    Scale down the image resolution according to its visible size in the PDF document. This will drastically reduce the size and quality of the images.

    Declaration
    public bool ShrinkImages { get; set; }
    Property Value
    Type Description
    System.Boolean
    ☀
    ☾
    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.