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.
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
function TPDFlib.RenderPageToStream(DPI: Double; Page, Options: Integer; Target: TStream): Integer;ActiveX
Function PDFlib::RenderPageToStream(DPI As Double, Page As Long, Options As Long, Target As Long) As LongParameters
| 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 9 = HTML5 output 10 = TIFF (G4) output |
| Target | The stream to place the rendered page into |