Skip to main content
All docs
V24.1

PdfViewer.RenderingEngine Property

Specifies the engine used to render page content.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v24.1.dll

NuGet Package: DevExpress.Win.PdfViewer

Declaration

[Browsable(false)]
public PdfViewerRenderingEngine RenderingEngine { get; set; }

Property Value

Type Description
PdfViewerRenderingEngine

An enumeration value that specifies the rendering engine.

Available values:

Name Description
Default

Default rendering engine.

GdiPlus

GDI/GDI+ rendering engine.

DirectX

DirectX rendering engine.

DirectXSoftware

DirectX software rendering engine.

Remarks

The PDF Viewer uses DirectX as the default rendering engine. The GDI+ engine is used as the default backup.

The PDF Viewer uses DirectX to render PDF files and the XPS API to print them. If your printer uses a PCL6 or PostScript driver, the DirectX engine converts the print job from XPS to the printer’s format, which may reduce printing performance. We recommend that you use the XPS printer driver to optimize printing.

Set the PdfViewer.RenderingEngine property Gdi to disable the DirectX printing engine and use GDI+ instead. Please note that the GDI+ engine has limitations and some content may be lost (that is, stroke and clip text rendering, transparency, and blend modes).

You can also use the legacy printing engine (the PdfPrinterSettings.EnableLegacyPrinting option). In this case, PDF pages are printed as images. The legacy printing engine uses the GDI Print API to print files, and the rendering engine specified by the RenderingEngine property to render pages as images. Note that this can affect printing performance due to the size of printed images.

See Also