THotPDF.ExtractLoadedPageCharacters

對從已載入頁面擷取的每個邏輯 Unicode scalar,各傳回一個 THPDFCharacterRecord

Delphi 語法

function ExtractLoadedPageCharacters(PageIndex: Integer;
  out ACharacters: THPDFCharacterArray): boolean;

說明

此方法會展開已定位的 glyph cluster,且不會丟棄多 scalar 的 /ToUnicode 對應。每筆記錄都標明來源 glyph、cluster 範圍、連字元件索引與數量、來源 content token、marked-content 識別碼、變換後的四邊形與基線

連字元件共用來源 glyph 的幾何資訊,因為 PDF content stream 把該 glyph 視為一個單位來定位。當字型同時提供 glyph 寬度與 descriptor 的 ascent、descent 時,GeometryExact 為 true;否則 HotPDF 會傳回保守的 fallback 方框,並把旗標設為 false

參閱 ExtractLoadedPageGlyphs