SavePageRangeTextToStream

Text and extraction

Description

Writes UTF-8 text from the requested pages directly to a stream without buffering the complete document text

Syntax

Function TPDFlib.SavePageRangeTextToStream(Const PageRange: WideString; ExtractOptions: Integer; Const PageSeparator: WideString; Target: TStream): Integer;

Return values

Returns the number of pages written, or zero when the arguments or page range are invalid

Remarks

Output starts at the current stream position and does not include a UTF-8 byte-order mark

See also

ExtractPageRangeText, SavePageRangeTextToFile