Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

WordImageOptimizationOptions

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers sealed

Managed embedded-media optimization settings. Changes remain in memory until a normal save.

Inheritance

  • Object
  • WordImageOptimizationOptions

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 WordImageOptimizationOptions Clone() #
Returns: WordImageOptimizationOptions

Creates an independently validated copy of these settings.

Properties

public OfficeImageOptimizationMode Mode { get; set; } #

Defaults to placement-aware downsampling without same-size JPEG recompression.

public Double TargetDpi { get; set; } #

Required pixels per displayed inch, between 36 and 1200. Defaults to 144.

public Int32 JpegQuality { get; set; } #

JPEG encoding quality, from 1 through 100. Defaults to 85.

public Boolean KeepOriginalWhenNotSmaller { get; set; } #

Preserves original bytes when the candidate is not smaller.

public OfficeRasterResamplingMode ResamplingMode { get; set; } #

Filtering used for pixel reduction.

public OfficeImageMetadataPolicy MetadataPolicy { get; set; } #

Metadata policy. Metadata loss blocks replacement unless explicitly allowed.

public OfficeImageMetadataKinds MetadataSelection { get; set; } #

Categories retained by the selective metadata policy.

public Boolean AllowMetadataLoss { get; set; } #

Allows reported metadata loss, including intentional stripping. Defaults to false.

public Int64 MaxImageBytes { get; set; } #

Maximum encoded bytes read from one image part. Defaults to 32 MiB.

public Int64 MaxStagedBytes { get; set; } #

Maximum combined original and candidate bytes retained for transactional replacement. Defaults to 128 MiB.

public Int32 MaxPackageParts { get; set; } #

Maximum package parts visited. Defaults to 10000.

public WordSignedDocumentSavePolicy SignedDocumentPolicy { get; set; } #

Save policy used to authorize invalidating a signed package during mutation.