How to generate table of content in existing pdf file using aspose.pdf

Hi,

I am having one case where need to generate TOC for exsting pdf.

like below :- check sample screen for TOC which we need to generate

  1. Table 1--------------------------------------------2
    1.1 table a ---------------------------------------3
    1.2 table b ---------------------------------------4
    1.2.1 table ba --------------------------------5
    1.2 test a ----------------------------------------6
    2 table 2 -------------------------------------------7
    3 table 3 -------------------------------------------8

100 table Z-------------------------------------100

please let us know if we have any sample code with C# .Net

and also let us know if you have any suggestion or Query.

Thanks

@caseyfriese

I have observed the details shared by you and like to request you to please visit this documentation link for you kind reference.

I hope this will be helpful. Please get back to us with a sample PDF file as your expected output if you face any issue, so that we may proceed further to help you out.