Search Results for

    Show / Hide Table of Contents

    Class ObjectStreamMode

    Object stream mode used when writing the compressed PDF.

    Inheritance
    System.Object
    ObjectStreamMode
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public sealed class ObjectStreamMode : Enum

    The ObjectStreamMode enumeration in IronPDF declares how indirect PDF objects are packed when a document is serialised.

    Part of the IronPdf namespace, members are Disable, Generate, and Preserve (3 total). AdvancedCompressionOptions exposes the value: Generate minimises file size by bundling objects, Preserve retains the source layout for incremental saves, and Disable produces a flat structure that older readers parse reliably.

    See PDF compression for tuning details.

    Fields

    Disable

    Write every object as a top-level indirect object (no object streams). Use when consumer tools cannot read object streams.

    Declaration
    public const ObjectStreamMode Disable
    Field Value
    Type Description
    ObjectStreamMode

    Generate

    Pack indirect objects into object streams. Smallest output for PDF 1.5+ (default).

    Declaration
    public const ObjectStreamMode Generate
    Field Value
    Type Description
    ObjectStreamMode

    Preserve

    Keep the input's object stream layout unchanged.

    Declaration
    public const ObjectStreamMode Preserve
    Field Value
    Type Description
    ObjectStreamMode

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget