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 Windows Device Context (DC).

For best results this function requires GDI+, which is available by default in Windows XP. For earlier operating systems you may need the GDI+ redistributable available from Microsoft, which is called "gdiplus.dll". You can use the SetGDIPlusFileName function to specify where this DLL is installed.

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

Syntax

Delphi

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

ActiveX

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

DLL

int QuickPDFDARenderPageToDC(int InstanceID, int FileHandle, int PageRef, int 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 © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum