The GetPageMarkedContentCount method returns the number of Marked Content elements contained in a page. The number of nodes in a page is not related the configuration of nodes in the Structure Tree, but they are enumerated with a zero-based index called MCID that can be used to retrieve them.
System.Integer GetPageMarkedContentCount(System.Integer PageNumber)
PageNumber
Page number of the target page considering 0 as the first page.
Number of Marked Content elements in the target page.
Please check this link.
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 GetPageMarkedContentCount 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.