Quick PDF logo

RenderPageToDC

Rendering and printing

Version history

This function was introduced in Quick PDF Library version 7.12.

Description

This function renders a page from the selected document directly onto a Windows Device Context (DC).

For best results this function requires GDI+, which is available by default in Windows XP. For other 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.RenderPageToDC(DPI, Page: Integer; DC: HDC): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::RenderPageToDC(DPI As Long, Page As Long,
  DC As Long) As Long

DLL

int QuickPDFRenderPageToDC(int InstanceID, int DPI, int Page, HDC DC)

Parameters

DPI The DPI to use when rendering the page
Page The page number to render
DC The device context handle

Return values

0 Page could not be rendered
1 Page was rendered successfully

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum