Debenu Quick PDF logo

DARenderPageToDC

Direct access functionality, Rendering and printing

Version history

This function was introduced in Quick PDF Library version 7.12.

Description

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 by default in Windows XP and later.

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

Syntax

Delphi

function TDebenuPDFLibrary1511.DARenderPageToDC(FileHandle, PageRef: Integer; 
  DPI: Double; DC: HDC): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DARenderPageToDC(FileHandle As Long,
  PageRef As Long, DPI As Double, DC As Long) As Long

DLL

int DPLDARenderPageToDC(int InstanceID, int FileHandle, int PageRef, double DPI,
  HDC DC)

Parameters

FileHandle A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRef A page reference returned by the DAFindPage or DANewPage functions
DPI The DPI to use when rendering the page
DC The device context handle

Return values

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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport