PdfExportOptions.RasterizationResolution Property
Specifies the resolution (in DPI) used 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 |
---|---|
Int32 | The resolution (in DPI) used to rasterize vector images. |
Remarks
Set the PdfExportOptions.RasterizeImages property to true
to apply the resolution specified by the RasterizationResolution
property.
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