RenderPageToDC
Version history
This function was introduced in Quick PDF Library version 7.12.
Description
This function renders a page from the selected document directly onto a graphics surface.
On Windows the target surface is a Device Context handle (DC).
By default rendering uses the GDI+ system which is available by default in Windows XP and later.
It is also possible to render using AGG, use the SetDPLRFileName and SelectRenderer functions.
Syntax
Delphi
function TDebenuPDFLibrary1811.RenderPageToDC(DPI: Double; Page: Integer;
DC: HDC): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::RenderPageToDC(DPI As Double,
Page As Long, DC As Long) As Long
DLL
int DPLRenderPageToDC(int InstanceID, double DPI, int Page, HDC DC)
Parameters
DPI | The DPI to use when rendering the page |
Page | The page number to render |
DC | The device context handle |
Return values
0 | Page could not be rendered |
1 | Page was rendered successfully |