RenderPageToDC64

Rendering and printing

Description

The trailing 64 denotes the 64-bit device context variant on the ActiveX/COM surface: 64-bit automation clients obtain the canvas handle from GetCanvasDC64 or GetCanvasDCEx64 as a LongLong and cannot pass it through the 32-bit Long parameter of the base form. Behaviour matches RenderPageToDC; both the Delphi library and the DLL accept the same handle as a native HDC value

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 Cairo, use the SetCairoFileName and SelectRenderer functions.

Syntax

ActiveX

Function PDFlib::RenderPageToDC64(DPI As Double, Page As Long, DC As LongLong) As Long

Parameters

DPIThe DPI to use when rendering the page
PageThe page number to render
DCThe device context handle, passed as a 64-bit integer (LongLong)

Return values

0Page could not be rendered
1Page was rendered successfully