I've got a modest amount of experience with markdown-->html-->pdf using puppeteer etc. but for speed to market the Adobe Doc APIs services can't be beat. Still, I can't seem to find any mention of code or mechanism to create a TOC in MS Word. Any advice would be much appreciated.
Copy link to clipboard
Can you explain a bit more? Word has a TOC feature built in to generate one, but are you talking about... going from PDF to Word _and_ adding a TOC while doing so?
Apologies for not being clearer. I am using AWS Eventbridge | Step Functions | Lambda to set up a report writer. You are correct I am trying to use the document generator API to go from MS Word Template to PDF. Although the Adobe docs and your medium.com posts are outstanding, I haven't been able to find a way to create a ToC. I likely missed something.
Do I need to create a separate script and run it pre-final rendering? In another framework I tested and passed on (jsreports.org) there were script setups for pre-processing and post-processing.
I am somewhat of a noob on MS Word having spent over 10 years using Ubuntu Linux/Libreoffice writer.
Thanks in advance.