PdfViewer.RenderingEngine Property
Specifies the engine used to render page content.
Namespace: DevExpress.XtraPdfViewer
Assembly: DevExpress.XtraPdfViewer.v24.2.dll
NuGet Package: DevExpress.Win.PdfViewer
#Declaration
[Browsable(false)]
public PdfViewerRenderingEngine RenderingEngine { get; set; }
#Property Value
Type | Description |
---|---|
Pdf |
An enumeration value that specifies the rendering engine. |
Available values:
Name | Description |
---|---|
Default | Default rendering engine. |
Gdi |
GDI/GDI+ rendering engine. |
Direct |
Direct |
Direct |
Direct |
#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.