Table of Contents

Method RecompressWithJpeg

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

RecompressWithJpeg()

Recompresses image data using JPEG baseline format.

public void RecompressWithJpeg()

Remarks

The JPEG quality is set to 100 during recompression.

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

For a mask image, this method emits a warning in logs and does nothing. A mask image is an image with IsMask equal to true.

RecompressWithJpeg(int)

Recompresses image data using JPEG baseline format and specified compression quality.

public void RecompressWithJpeg(int jpegQuality)

Parameters

jpegQuality int

The JPEG quality.

Remarks

The JPEG quality value should be between 1 and 100 inclusive.

The quality value of 100 preserves most details but produces biggest output.

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

For a mask image, this method emits a warning in logs and does nothing. A mask image is an image with IsMask equal to true.