Back to Devexpress

PdfExportOptions.ConvertImagesToJpeg Property

corelibraries-devexpress-dot-xtraprinting-dot-pdfexportoptions-df6814fa.md

latest2.8 KB
Original Source

PdfExportOptions.ConvertImagesToJpeg Property

Specifies whether to convert the bitmap and meta file images contained in the document to JPEG format during the export to PDF.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(true)]
public bool ConvertImagesToJpeg { get; set; }
vb
<DefaultValue(True)>
Public Property ConvertImagesToJpeg As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true , to convert images to JPEG; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ConvertImagesToJpeg
Cross-Platform Class LibraryExportOptions

.Pdf .ConvertImagesToJpeg

| | WinForms Controls | DiagramOptionsExport |

.PdfExportOptions .ConvertImagesToJpeg

| | WPF Controls | DiagramControl |

.PdfExportOptions .ConvertImagesToJpeg

|

Remarks

Use the ConvertImagesToJpeg property to convert the bitmap and metafile images contained in the document to JPEG format during the export to PDF operation. This reduces the size of the PDF document.

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.

See Also

ImageQuality

PdfExportOptions Class

PdfExportOptions Members

DevExpress.XtraPrinting Namespace