officefileapi-devexpress-dot-docs-dot-presentation-dot-export-dot-pdfexportoptions-81e4cbf4.md
Specifies the resolution (in DPI) used to rasterize vector images during export.
Namespace : DevExpress.Docs.Presentation.Export
Assembly : DevExpress.Docs.Presentation.v25.2.dll
NuGet Package : DevExpress.Docs.Presentation
public int RasterizationResolution { get; set; }
Public Property RasterizationResolution As Integer
| Type | Description |
|---|---|
| Int32 |
The resolution (in DPI) used to rasterize vector images.
|
Set the PdfExportOptions.RasterizeImages property to true to apply the resolution specified by the RasterizationResolution property.
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);
}
Imports DevExpress.Docs.Pdf
Imports DevExpress.Docs.Presentation
Imports DevExpress.Docs.Presentation.Export
Using presentation = New Presentation(File.ReadAllBytes("C:\Documents\Presentation.pptx"))
Dim options = New PdfExportOptions()
options.RasterizeImages = True
options.RasterizationResolution = 96
presentation.ExportToPdf(new FileStream("C:\Documents\Presentation.pdf", FileMode.Create, FileAccess.ReadWrite), options)
End Using
See Also