API Reference

Class

PdfOptimizationOptions

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Options for lossless PDF optimization actions.

Inheritance

  • Object
  • PdfOptimizationOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

Methods

public static PdfOptimizationOptions Create(PdfOptimizationProfile profile) #
Returns: PdfOptimizationOptions

Creates a stable option set for a named profile.

Parameters

profile OfficeIMO.Pdf.PdfOptimizationProfile requiredposition: 0

Properties

public PdfOptimizationProfile Profile { get; set; } #

Named profile used to create this option set.

public Boolean CompressUnfilteredStreams { get; set; } #

Compress unfiltered stream objects with FlateDecode when the compressed form is smaller.

public Boolean RemoveUnreferencedObjects { get; set; } #

Remove indirect objects that are not reachable from the document catalog during a safe full rewrite.

public Boolean DeduplicateIdenticalStreams { get; set; } #

Rewrite references so byte-identical stream objects share one indirect object.

public Boolean DeduplicateImages { get; set; } #

Deduplicate image XObjects by decoded lossless sample data and semantic image dictionary.

public Boolean DeduplicateFonts { get; set; } #

Deduplicate byte-identical font dictionaries that share the same referenced font resources.

public Boolean DeduplicateResources { get; set; } #

Deduplicate indirect page/form resource dictionaries with identical serialized structure.

public Boolean UseObjectStreams { get; set; } #

Pack eligible non-stream objects into PDF 1.5 object streams.

public PdfOptimizationXrefFormat XrefFormat { get; set; } #

Cross-reference representation for the optimized candidate.

public Boolean Linearize { get; set; } #

Emit standards-compliant Fast Web View linearization with classic cross-reference tables and primary hint tables.

public Int32 MaximumDecodedImageBytes { get; set; } #

Maximum decoded image bytes considered for semantic image deduplication.

public Boolean KeepOriginalWhenNotSmaller { get; set; } #

Return the original PDF bytes when the optimized output would not be smaller.

public Int32 MinimumStreamCompressionBytes { get; set; } #

Minimum unfiltered stream size considered for compression.