RenderPageToDCClip64

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 RenderPageToDCClip; the Delphi library and the DLL take the same handle as a native HDC value

This function renders a page from the selected document directly onto a graphics surface, limited to a clip rectangle. The clip rectangle moves with the render offset set by SetRenderDCOffset, so it always selects the same part 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 period as the decimal separator. An empty, malformed or zero-size rectangle renders the whole page

Return values

1Render successful
0Render failed; LastRenderError describes the failure