TdxPSPDFReportExportOptions.UseJPEGCompression Property
Specifies if export routines apply the JPEG compression algorithm to images in exported PDF documents.
#Declaration
property UseJPEGCompression: Boolean read; write; default True;
#Property Value
Type | Default | Description |
---|---|---|
Boolean | True |
|
#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 Use
property to False
, and set CompressTrue
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
.