RenderAsMultipageTIFFToStream
Rendering and printing
Description
Renders the specified page ranges of the selected document into a multi-page TIFF image written directly to a caller-supplied TStream
Syntax
Delphi
Function TPDFlib.RenderAsMultipageTIFFToStream(DPI: Double; Const PageRanges: WideString; ImageOptions, OutputOptions: Integer; Target: TStream): Integer;
Parameters
| DPI | Rendering resolution in dots per inch |
|---|---|
| PageRanges | Page range string (such as "1-4,7") or empty string to render all pages |
| ImageOptions | Color depth and compression mode: 0 = 24-bit RGB uncompressed/LZW, 1 = 1-bit monochrome CCITT Group 4 |
| OutputOptions | Reserved output flags; pass 0 |
| Target | Destination stream that receives the assembled multi-page TIFF bytes |
Return values
| 1 | All requested pages were rendered and chained into the target TIFF stream |
|---|---|
| 0 | The target stream was nil, the page range was invalid, or rendering failed |
Remarks
Uses built-in 24-bit RGB and CCITT Group 4 TIFF encoders when GDI+ is disabled or unavailable
See also
RenderAsMultipageTIFFToFile, RenderPageToStream, RenderDocumentToFile