PdfExportOptions.ImageQuality Property

Gets or sets the quality of images in the resulting PDF file.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v21.1.Core.dll

Declaration

[DefaultValue(PdfJpegImageQuality.Highest)]
public PdfJpegImageQuality ImageQuality { get; set; }

Property Value

Type Default Description
PdfJpegImageQuality

Highest

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
.Pdf.ImageQuality
WinForms Controls DiagramOptionsExport
.PdfExportOptions.ImageQuality
WPF Controls DiagramControl
.PdfExportOptions.ImageQuality
DiagramDesignerControl
.PdfExportOptions.ImageQuality
ExportOptionsContainer
.Pdf.ImageQuality

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.

See Also