Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPSPDFReportExportOptions.UseJPEGCompression Property

Specifies if export routines apply the JPEG compression algorithm to images in exported PDF documents.

#Declaration

Delphi
property UseJPEGCompression: Boolean read; write; default True;

#Property Value

Type Default Description
Boolean True
True
Default. Export routines use the JPEG algorithm to compress all images from the source report. The JPEGQuality property specifies the JPEG quality level (as a percentage) for images in exported PDF documents.
False
The JPEG compression algorithm is disabled. The JPEGQuality property value has no effect.

#Remarks

Use CompressStreams and UseJPEGCompression properties to apply the Deflate compression algorithm to an exported PDF document and apply the JPEG compression algorithm to all images in the exported document. You can use both compression algorithms simultaneously.

Tip

The JPEG image format is a lossy compression algorithm best applied to photographic images. If your source document contains only images with simple shapes and a low color count, the lossless Deflate compression algorithm can generate significantly smaller files.

In this scenario, you can set the UseJPEGCompression property to False, and set CompressStreams to True to achieve the best results.

If both CompressStreams and UseJPEGCompression properties are set to True, the JPEG compression algorithm processes exported images first, and the Deflate algorithm does not have a noticeable effect on these images in the resulting PDF document.

#Default Value

The UseJPEGCompression property’s default value is True.

See Also