docxjs
docxjs copied to clipboard
How do I generate navigation labels
我想把 标题 生成导航标签,类似以下这样
I want the title to generate a navigation tag, something like this
What are the solutions
Since table of contents is built using the TOC fields, there is no easy way to get table of contents (http://officeopenxml.com/WPtableOfContents.php). Partial solution is to select all elements headers styles/classes.
Closed as duplication of #4