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

DPIRendering resolution in dots per inch
PageRangesPage range string (such as "1-4,7") or empty string to render all pages
ImageOptionsColor depth and compression mode: 0 = 24-bit RGB uncompressed/LZW, 1 = 1-bit monochrome CCITT Group 4
OutputOptionsReserved output flags; pass 0
TargetDestination stream that receives the assembled multi-page TIFF bytes

Return values

1All requested pages were rendered and chained into the target TIFF stream
0The 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