RenderPageToDCClip64

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 RenderPageToDCClip; 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 straight onto a graphics surface, restricted to a clip rectangle. The clip rectangle shifts with the render offset set by SetRenderDCOffset and therefore always selects the same region of the page

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.

Syntax

ActiveX

Function PDFlib::RenderPageToDCClip64(DPI As Double, Page As Long, DC As LongLong, Clip As String) As Long

Parameters

DPIRendering DPI
PagePage number to render
DCThe device context handle, passed as a 64-bit integer (LongLong)
ClipClip rectangle as "Left,Top,Width,Height" in PDF points, measured from the top left corner of the rendered page; numbers use a full stop as the decimal separator. An empty, malformed or zero-sized rectangle renders the whole page

Return values

1Render successful
0Render failed; LastRenderError describes the failure