Skip to main content
Known Participant
December 9, 2021
Question

MS Word-- Automatic TOC/Pagination using the Doc Generator API?

  • December 9, 2021
  • 1 reply
  • 505 views

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.

 

 

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
December 10, 2021

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?

Vince5E52Author
Known Participant
December 11, 2021

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.