Quick PDF logo

RenderPageToStream

Rendering and printing

Description

This function is only available in the Delphi edition. It renders a page from the selected document to a TStream object. The data placed into the stream 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

function TQuickPDF0813.RenderPageToStream(DPI, Page, Options: Integer; 
  Target: TStream): Integer;

ActiveX

This function is not available in the ActiveX edition

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
Target The stream to place the rendered page into

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum