Quick PDF logo

RenderPageToVariant

Rendering and printing

Description

This function is only available in the ActiveX edition. It renders a page from the selected document to a byte array Variant. The data in the byte array depends on the Options parameter. 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. Encrypted documents cannot be rendered, they must be decrypted using Decrypt or DecryptFile.

Syntax

Delphi

This function is not available in the Delphi edition

ActiveX

Function QuickPDF0813.PDFLibrary::RenderPageToVariant(DPI As Long, Page As Long,
  Options As Long) As Variant

DLL

This function is not available in the DLL edition

Parameters

DPI The DPI to use when rendering the page. Values over 300 will cause excessive memory usage.
Page The page number to render
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

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum