Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfOptimizationOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Implements
IPdfOperationCancellation
Modifiers
sealed

Options for lossless PDF optimization actions.

Inheritance

  • object
  • PdfOptimizationOptions

Usage

Explore 2 API references to this type

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

Returned or exposed by 1

Accepted by parameters 1

Constructors

public PdfOptimizationOptions() #

Methods

public static PdfOptimizationOptions Create(PdfOptimizationProfile profile) #

Creates a stable option set for a named profile.

Parameters

profile OfficeIMO.Pdf.PdfOptimizationProfile required

Properties

public PdfOptimizationProfile Profile { get; set; } #

Named profile used to create this option set.

public bool CompressUnfilteredStreams { get; set; } #

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

public bool RemoveUnreferencedObjects { get; set; } #

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

public bool DeduplicateIdenticalStreams { get; set; } #

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

public bool DeduplicateImages { get; set; } #

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

public bool DeduplicateFonts { get; set; } #

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

public bool DeduplicateResources { get; set; } #

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

public bool 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 bool Linearize { get; set; } #

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

public int MaximumDecodedImageBytes { get; set; } #

Maximum decoded image bytes considered for semantic image deduplication.

public long MaximumTotalDecodedImageBytes { get; set; } #

Maximum aggregate decoded image bytes inspected for semantic deduplication.

public long? MaximumOutputBytes { get; set; } #

Optional maximum bytes retained and emitted for the optimized artifact.

public bool KeepOriginalWhenNotSmaller { get; set; } #

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

public int MinimumStreamCompressionBytes { get; set; } #

Minimum unfiltered stream size considered for compression.