How to retrieve page number and page heading as Table Of Content using aspose PDF

Hi Team,

We are currently using Aspose PDF to convert the HTML to PDF document. I have a new requirement to add a dynamic cover page containing table of contents and other information. Using Aspose I am also generating the page numbers in the PDF document.

Could you please let me know if it is possible to get the page number and page heading using Aspose PDF? or using the page heading can we retrieve the page number information. For example, “Sea Level” report heading is on page 9.
Cover page has dynamic html content I want to update/add only the Table of contents section using Aspose with correct page number and report heading.
Please see the eg screen shot image.jpg (52.2 KB)

@ajdev

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input PDF and HTML files.
  • Please attach the expected output PDF file that shows the desired behavior.

We will then provide you more information about your query. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.