GetTextBlockCharOrigin

文字、擷取、幾何

描述

在套用所選文件原點與縮放之後,傳回單一擷取字元的基線原點

語法

Delphi

Function TPDFlib.GetTextBlockCharOrigin(TextBlockListID, Index, CharIndex: Integer; Out X, Y: Double): Integer;

參數

TextBlockListID由 ExtractPageTextBlocks 傳回的控制代碼
Index從 1 起算的文字區塊索引
CharIndex從 1 起算的字元位置
X, Y接收轉換後的基線原點

傳回值

成功時為 1;控制代碼或索引無效時為 0,且所有輸出皆為零

備註

下一個字元原點通常等於目前原點加上 M11 與 M12 中由 GetTextBlockCharMatrix 傳回的基線前進量

另請參閱

GetTextBlockCharMatrix, DAGetTextBlockCharOrigin