PdfExportOptions.ConvertImagesToJpeg Property
Specifies whether to convert the images contained in the document to JPEG format during the export to PDF.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
[TypeConverter(typeof(BooleanTypeConverter))]
[XtraSerializableProperty]
public bool ConvertImagesToJpeg { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true, to convert images to JPEG; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to ConvertImagesToJpeg |
---|---|---|
Cross-Platform Class Library | ExportOptions |
|
WinForms Controls | DiagramOptionsExport |
|
WPF Controls | DiagramControl |
|
Remarks
Use the ConvertImagesToJpeg property to convert the bitmap and meta file images contained in the document to JPEG format during the export to PDF. This reduces the PDF document size.
Images are converted to JPEG only if this option is enabled and the JPEG image size is smaller than the original image size.
You can use the PdfExportOptions.ImageQuality property to change the embedded images’ quality and further reduce the document size.
Note
This property is not in effect for specific controls on non-Windows systems and in Azure compatibility mode. For instance, XRChart controls whose ChartImageType property is set to Metafile are exported in vector format.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ConvertImagesToJpeg property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.