Winnovative HTML to PDF Converter can be configured to merge the tables of contents for multiple HTML documents added to the same PDF document in an unified table of contents. The Document class
exposes through the TableOfContents property an object which can be used to control the unified table of contents similar to TableOfContentsOptions property of the HtmlToPdfConverter class.
The TableOfContentsEnabled property of the HtmlToPdfElement class controls if the table of contents for a HTML document is included or not in the unified table of contents of the PDF document.
The following options are available in this demo:
-
First HTML Page URL. This is the URL of the first HTML document to be added on the first page of the PDF document
-
Second HTML Page URL. This is the URL of the second HTML document to be added in PDF immediately after the first HTML document or on a new PDF page
following the first HTML document
-
Start the Second HTML on a New PDF Page. As the name suggests this option allows you to choose if you want to add the second HTML document immediately
after the first HTML document or on a new PDF page following the first HTML document
-
Create a Table of Contents from H1 to H6 Tags. Using this option you can enable or disable the creation of table of contents from the H1 to H6 tags found in the converted HTML document
-
Include First HTML TOC. Using this option you can control if the table of contents for the first HTML is included or not in the unified table of contents of the PDF document
-
Include Second HTML TOC. Using this option you can control if the table of contents for the second HTML is included or not in the unified table of contents of the PDF document