THotPDF.ExtractLoadedPagesText Method
Extracts text from the selected loaded-document pages in the requested one-based order and inserts the supplied separator between page results
Declaration
function ExtractLoadedPagesText(const PageRange: string; const PageSeparator: UnicodeString= #12): UnicodeString;
Unidad
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageRange | One-based page range such as 1,3-4; an empty value selects all pages |
PageSeparator | Unicode text inserted between page results, defaulting to a form-feed character |
Return value
Returns the aggregated Unicode text
Usage notes
- PageRange uses the public one-based range syntax even though individual loaded-page APIs use zero-based indexes
- Malformed or out-of-range input raises the same page-range exception used by other loaded-page APIs