Debenu Quick PDF logo


Direct access functionality, Rendering and printing

Version history

This function was introduced in Quick PDF Library version 7.12.


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.



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


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


int DPLDARenderPageToDC(int InstanceID, int FileHandle, int PageRef, double DPI,


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