Skip to main content

TdxPSPDFReportExportOptions.UseJPEGCompression Property

Specifies if the export routines apply the JPEG compression algorithm to all images in an exported PDF document.

Declaration

property UseJPEGCompression: Boolean read; write; default True;

Property Value

Type Default
Boolean True

Remarks

The JPEG format is a lossy compression algorithm best applied to photographic images. Use the JPEGQuality property to adjust the balance between image quality and size in exported PDF documents. If your source document contains only images with simple shapes and few colors, the lossless Deflate compression algorithm can yield better results in terms of exported document size. In this case, set the UseJPEGCompression property to False to disable JPEG image compression and set the CompressStreams property to True to enable the Deflate compression for an entire document.

You can use both compression algorithms simultaneously. In this case, the Deflate compression does not have a noticeable effect on JPEG-compressed images in an exported document.

The UseJPEGCompression property’s default value is True.

See Also