Aspose.PDF TOC in a PDF

Is there a way we can add TOC in a PDF, we are converting an HTML to PDF using ASPOSE.PDF and one of the requirement is to have table of contents along with pages numbers in this PDF, Any help regarding this will be greatly appriciated.

Hi,

Thank you for considering Aspose.

Calling HTML2PDF directly and adding TOC is not supported. But if you are writing HTML inside PDF using Aspose.Pdf then you can create TOC using ListSection class of Aspose.Pdf.

Thanks.