Table of Contents

Class PdfCompressionOptions

Namespace
LibreOfficeKit
Assembly
LibreOfficeKit.dll

Image quality and compression settings for PDF export. Controls how images embedded in the document are compressed in the output PDF.

public class PdfCompressionOptions
Inheritance
PdfCompressionOptions
Inherited Members

Remarks

When UseLosslessCompression is true, images are stored using PNG (lossless) compression and the Quality setting is ignored.

When UseLosslessCompression is false (default), images are compressed using JPEG with the specified Quality level.

Properties

MaxImageResolution

Gets or sets the maximum image resolution in DPI. Only effective when ReduceImageResolution is true.

public int? MaxImageResolution { get; set; }

Property Value

int?

Quality

Gets or sets the JPEG compression quality (1–100). Only effective when UseLosslessCompression is false.

public int? Quality { get; set; }

Property Value

int?

ReduceImageResolution

Gets or sets whether to reduce image resolution to MaxImageResolution.

public bool? ReduceImageResolution { get; set; }

Property Value

bool?

UseLosslessCompression

Gets or sets whether to use lossless compression (PNG) for images. When true, the Quality setting is ignored.

public bool? UseLosslessCompression { get; set; }

Property Value

bool?