My use case for pdfHTML generation is as follows.
- I have several individual reports being generated in HTML format by external API's (say Rep1.html, Rep2.html,..,Rep10.html)
- I have an Orchestrating API that need to merge these HTML files as a SINGLE pdf document
- Assume that Step 2 can read these files from a source directory
Question: In the pdf Merge process, how do I create a TOC that references all 10 reports? There is an earlier post from Alexy (Adding Table of Content with pdfHTML in iText7) that addresses this for a Single HTML file which entails adding a special tag [data-toc] by parsing the HTML file
In my case, when the individual html files are created, I can also create the required special tags. So if it a given that the individual html files will have the special tag, how do I render the TOC with the page numbers that will reflect the content location of the final pdf doc?