THotPDF.AppendStructureMarkedContent Method
Associates one page-local MCID with an existing structure element through an MCR dictionary and the page ParentTree
Declaration
procedure AppendStructureMarkedContent(
StructElem: THPDFDictionaryObject;
PageIndex, MCID: Integer);
Parameters
| Name | Purpose |
|---|---|
StructElem | An existing structure element returned by AddStructureElement |
PageIndex | Zero-based page index that owns the marked content |
MCID | Non-negative marked-content identifier that is unique on the page |
Usage notes
- The method appends
<</Type /MCR /Pg ... /MCID ...>>to the structure elementKarray - The page receives or reuses its
StructParentskey - Invalid pages, negative MCIDs, nil elements, and non-array
Kentries are rejected