Skip to main content
All docs
V25.1
  • 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

    public bool RasterizeImages { get; set; }

    Property Value

    Type Description
    Boolean

    true to rasterize vector images; otherwise, false.

    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