ExtractPageRangeText

Text and extraction

Description

Extracts text from a page range in one traversal and inserts a caller-provided separator between successfully processed pages

Syntax

Function TPDFlib.ExtractPageRangeText(Const PageRange: WideString; ExtractOptions: Integer; Const PageSeparator: WideString): WideString;

Parameters

PageRangePage numbers and ranges such as 1,3,5-8; an empty value selects every page
ExtractOptionsA GetPageText extraction mode from 0 through 11
PageSeparatorText inserted between processed pages

Remarks

The method parses the range once, reports operation progress per page, honours Abort, and restores the previously selected page

See also

SavePageRangeTextToStream, SavePageRangeTextToFile, GetPageText