THotPDF.ExtractLoadedPagesText Method
Method summary: THotPDF.ExtractLoadedPagesText Method
Declaration
function ExtractLoadedPagesText(const PageRange: string; const PageSeparator: UnicodeString= #12): UnicodeString;
Unit
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
Related APIs
- THotPDF
- THPDFPage
- Contents