Aspose.Pdf.Generator namespace only supports the feature to create TOC while generating new PDF and Aspose.Pdf for .NET does not support the feature to manipulate TOC in existing PDF file. However for the sake of implementation, the requirement is added in issue tracking system as PDFNEWNET-34836. Once the new feature becomes available, we would be able to get the information associated with each item in TOC.
PS, My name is Nayyer and I am Evangelist/Support developer at Aspose.
solved How can i get “Table of content” from PDF file and save it to the tree struct?