SavePageRangeTextToFile

Text and extraction

Description

Creates a UTF-8 text file from a parsed page range using incremental page writes

Syntax

Function TPDFlib.SavePageRangeTextToFile(Const PageRange: WideString; ExtractOptions: Integer; Const PageSeparator, FileName: WideString): Integer;

Return values

Returns the number of pages written, or zero when the output cannot be created or the request is invalid

Remarks

The destination file is replaced and the previously selected PDF page is restored

See also

ExtractPageRangeText, SavePageRangeTextToStream