IDIDocument.GetMarkedContentNode Method

The GetMarkedContentNode method returns a node in the Structure Tree that contains the Marked Content element that corresponds to the index mcIndex in the page pageNumber.

 

Syntax

ActiveX:

IStructElement  GetMarkedContentNode(System.Integer PageNumber, System.Integer mcIndex)

 

Parameters

PageNumber

Page number of the target page considering 0 as the first page.

mcIndex

Index of target Marked Content element inside the page. Marked Content indexes start at 0 .

 

Return Value

Number of Marked Content elements in the target page.

 

Example

Please check this link.

 

Remarks

When a new file is created with Amyuni PDF driver using Marked Content elements, all these elements will not be associated to any node in the structure tree and they will be considered as “orphan elements”. If such a file is loaded by Amyuni PDF Converter in a post-processing step, all the orphan elements will be automatically associated to new nodes on the Structure Tree and they will be attached as direct children of the root node. The method GetMarkedContentNode allows developers to know the number of such items by page. The function GetMarkedContentNode allows developers to retrieve the newly created nodes by using the index of their corresponding marked content element inside each page

 

Member of CDIntfEx.IDIDocument.