GetTextBlockBound
文字, 字型, 擷取
描述
傳回指定文字區塊的某個邊界值
語法
Delphi
Function TPDFlib.GetTextBlockBound(TextBlockListID, Index, BoundIndex: Integer): Double;
ActiveX
Function PDFlib::GetTextBlockBound(TextBlockListID As Long, Index As Long, BoundIndex As Long) As Double
DLL
double DLGetTextBlockBound(int InstanceID, int TextBlockListID, int Index, int BoundIndex);
參數
| TextBlockListID | 由 ExtractPageTextBlocks 函式傳回的值 |
|---|---|
| Index | 文字區塊的索引。清單中第一個區塊的索引為 1。 |
| BoundIndex | 1 = 左下角水平座標 2 = 左下角垂直座標 3 = 右下角水平座標 4 = 右下角垂直座標 5 = 右上角水平座標 6 = 右上角垂直座標 7 = 左上角水平座標 8 = 左上角垂直座標 |
傳回值
傳回文字區塊的要求邊界,已轉換為文件的座標系統和度量單位。TextBlockListID 並未參照有效的文字區塊清單時傳回 0。