PdfImage.RecompressWithJpeg Method

Recompresses image data using JPEG baseline format.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void RecompressWithJpeg()
VB
Public Sub 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.

See Also