Debenu Quick PDF logo

DARenderPageToVariant

Direct access functionality, Rendering and printing

Version history

This function was introduced in Quick PDF Library version 7.11.

Description

Renders the specified page from the specified document to an image and returns the image data as a byte array variant.

By default rendering uses the GDI+ system which is available by default in Windows XP and later.

Option 10, TIFF (G4) output, is only available on Windows Vista and Windows Server 2008 and later.

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

Syntax

Delphi

This function is not available in the Delphi edition

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DARenderPageToVariant(FileHandle As Long,
  PageRef As Long, Options As Long, DPI As Double) As Variant

DLL

This function is not available in the DLL edition

Parameters

FileHandle A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRef A page reference returned by the DAFindPage or DANewPage functions
Options 0 = BMP output
1 = JPEG output
2 = WMF output
3 = EMF output
4 = EPS output
5 = PNG output
6 = GIF output
7 = TIFF output
8 = EMF+ output
9 = HTML5 output
10 = G4 TIFF output
DPI The DPI to use when rendering the page. Values over 300 will cause excessive memory usage.

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport