Winnovative HTML to PDF Converter allows you to define a table of contents directly in HTML using a set of special attributes. You can set the attribute data-toc-item on a HTML element to enable the creation a table of contents entry for that element in PDF. Additionally you can specify the item level in table of contents with data-toc-level attribute and the bookmark title with data-toc-title attribute.

At the top of the demo you can choose the HTML document to convert which can be: