DARenderPageToDC64

Direct access functionality, Rendering and printing

Description

The trailing 64 marks the 64-bit device context form on the ActiveX/COM surface: 64-bit automation clients receive 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 is identical to DARenderPageToDC; the Delphi library and the DLL take the same handle as a native HDC value

Renders the specified page from the specified 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 in Windows XP and later.

It is also possible to render using Cairo, use the SetCairoFileName and SelectRenderer functions.

Syntax

ActiveX

Function PDFlib::DARenderPageToDC64(FileHandle As Long, PageRef As Long, DPI As Double, DC As LongLong) As Long

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRefA page reference returned by the DAFindPage or DANewPage functions
DPIThe DPI to use when rendering the page
DCThe device context handle, passed as a 64-bit integer (LongLong)

Return values

0The page could not be rendered
1The page was rendered successfully