PdfExportOptions.RasterizeImages Property
Gets or sets whether to rasterize vector images during export.
Namespace: DevExpress.Docs.Presentation.Export
Assembly: DevExpress.Docs.Presentation.v25.1.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
The RasterizeImages
property allows you to specify whether to rasterize vector images on PDF export. If this property is set to true
, you can use the PdfExportOptions.RasterizationResolution option to define the resolution (in DPI) used to rasterize vector images.
Example
The following code snippet enables rasterization and sets the resolution to 96
:
using DevExpress.Docs.Pdf;
using DevExpress.Docs.Presentation;
using DevExpress.Docs.Presentation.Export;
using (var presentation = new Presentation(File.ReadAllBytes(@"C:\Documents\Presentation.pptx")))
{
var options = new PdfExportOptions();
options.RasterizeImages = true;
options.RasterizationResolution = 96;
presentation.ExportToPdf(new FileStream("C:\\Documents\\Presentation.pdf", FileMode.Create, FileAccess.ReadWrite), options);
}
See Also