THotPDF.ExtractLoadedPageText Method

 

THotPDF.ExtractLoadedPageText

THotPDF

 

Top

Extracts text from a loaded page as a Unicode string without layout clustering and returns True if successful

 

Delphi syntax:

function ExtractLoadedPageText(PageIndex: Integer; out AText: UnicodeString): boolean;

 

Description

An available /ToUnicode CMap remains authoritative; missing entries fall through to /Encoding /Differences glyph names resolved through the Adobe Glyph List, code-to-CID mappings and Adobe CID collections, then binary /CIDToGIDMap data combined with the embedded TrueType or OpenType cmap

Embedded cmap recovery supports BMP and supplementary-plane mappings, and the same fallback chain is reversed when loaded text replacement must encode a Unicode scalar back into the original font

Scanned pages can gain searchable ToUnicode content through Searchable OCR Text Layers