Table of Contents

Method RecompressWithJpeg2000

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

RecompressWithJpeg2000()

Recompresses image data using JPEG 2000 format.

public void RecompressWithJpeg2000()

Remarks

This method performs lossless 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.

RecompressWithJpeg2000(int)

Recompresses image data using JPEG 2000 format and specified compression ratio.

public void RecompressWithJpeg2000(int compressionRatio)

Parameters

compressionRatio int

The compression ratio to use while compressing.

Remarks

The compression ratio should be not less than 1.

The compression ratio equal to 1 causes lossless compression but produces biggest output. The larger compression ratio values cause smaller outputs in expense of image detail.

The compression ratio of N means "compress N times".

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.