THotPDF.FindStructureElementForMCID Method

Resolves the StructElem dictionary that owns a given (page, MCID) marked-content sequence by reading the page /StructParents key and indexing into the document ParentTree in constant time

Declaration

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

Unit

HPDFDoc

Parameters and result

ValuePurpose
PageIndexZero-based page index whose marked content is being resolved
MCIDMarked-content identifier emitted on the page and wired into the ParentTree by AddStructureElement
ResultThe owning indirect StructElem dictionary, or nil when the page is not tagged, the slot is empty, or either argument is out of range

Behavior

Related APIs