PdfExportOptions.ImageQuality Property
Gets or sets the quality of images in the resulting PDF file.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
Property Value
Type | Description |
---|---|
PdfJpegImageQuality | A PdfJpegImageQuality enumeration value which specifies the quality of images in the resulting PDF file. |
Available values:
Name | Description |
---|---|
Lowest | The resulting Jpeg image quality is the lowest (the resulting PDF file size is the smallest). |
Low | The resulting Jpeg image quality is low (the resulting PDF file size is small). |
Medium | The resulting Jpeg image quality is medium (the resulting PDF file size is also medium). |
High | The resulting Jpeg image quality is high (the resulting PDF file size is big). |
Highest | The resulting Jpeg image quality is the highest (the resulting PDF file size is the biggest). |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to ImageQuality |
---|---|---|
Cross-Platform Class Library | ExportOptions |
|
WinForms Controls | DiagramOptionsExport |
|
WPF Controls | DiagramControl |
|
Remarks
When exporting a document to PDF, you can control the resulting file size. Enable the PdfExportOptions.ConvertImagesToJpeg option to reduce the size of the resulting PDF document by compressing the original images to JPEG.
In this case, you can use the ImageQuality property to specify the required quality of PDF-embedded images. Increasing the quality of document images may result in a large file size, and vise versa, degrading the quality reduces the file size.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ImageQuality 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.