THotPDF.FindStructureElementForMCID Method

讀取頁面的 /StructParents 鍵值並以常數時間索引文件 ParentTree,找出擁有指定 (page, MCID) marked-content 序列的 StructElem 字典

宣告

function FindStructureElementForMCID(PageIndex, MCID: Integer): THPDFDictionaryObject;

單元

HPDFDoc

參數與結果

值用途
PageIndex要解析 marked content 的頁面索引(從零起算)
MCID頁面上發出的 marked-content 識別碼,由 AddStructureElement 接入 ParentTree
Result擁有該 MCID 的間接 StructElem 字典;頁面未加標籤、插槽為空或任一引數超出範圍時傳回 nil

行為

相關 API