Table of Contents

Method RecompressWithFlate

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

RecompressWithFlate()

Recompresses image data using zlib/deflate compression method.

public void RecompressWithFlate()

Remarks

Image data is recompressed using maximum (9) compression quality.

This method throws UnsupportedImageException when used on an inline image. You can check IsInline property before invoking this method.

RecompressWithFlate(int)

Recompresses image data using zlib/deflate compression method and specified compression quality.

public void RecompressWithFlate(int deflateQuality)

Parameters

deflateQuality int

The quality to use in Deflate encoder.

Remarks

The Deflate quality value should be between 0 and 9 inclusive.

The quality value of 9 gives best compression.

This method throws UnsupportedImageException when used on an inline image. You can check IsInline property before invoking this method.