API Reference
Class
PdfImageOptimizationOptions
Controls optional placement-aware image downsampling during PDF generation.
Inheritance
- Object
- PdfImageOptimizationOptions
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
- Method PdfImageOptimizationOptions.Clone
- Property PdfOptions.ImageOptimization
Constructors
public PdfImageOptimizationOptions() #Methods
public PdfImageOptimizationOptions Clone() #Returns:
PdfImageOptimizationOptionsCreates an independent copy of these options.
Inherited Methods
Properties
public Boolean Enabled { get; set; } #Enables managed placement-aware image optimization. Disabled by default.
public Double TargetDpi { get; set; } #Target image resolution in pixels per inch. Defaults to 144.
public Double DownsampleThreshold { get; set; } #Minimum ratio between source pixels and placement-required pixels before downsampling. Defaults to 1.1 to avoid re-encoding for negligible reductions.
public OfficeRasterResamplingMode ResamplingMode { get; set; } #Sampling mode used when source pixels are reduced.
public Int32 JpegQuality { get; set; } #Quality used when a JPEG source is downsampled. Defaults to 85.
public Boolean KeepOriginalWhenNotSmaller { get; set; } #Keeps the original encoded payload when optimized bytes are not smaller.