THotPDF.ExtractLoadedPageStructureText Method

宣告

function ExtractLoadedPageStructureText(PageIndex: Integer;
  out AText: UnicodeString; out UntaggedGlyphCount: Integer): boolean;

行為

結構順序的文字擷取:依 ISO 32000-1 14.8.4,按撰寫順序走訪文件 structure tree,並按 MCID 串接頁面的 marked-content run,讓政府表單與無障礙出版物這類 tagged 文件能以權威閱讀順序擷取,而不是靠幾何猜測

頁面沒有可用的結構樹時傳回 false;UntaggedGlyphCount 回報沒有 MCID、結構處理階段無法安置的字形數量

參閱 ExtractLoadedPageTextLayout 與 自動版面結構