VolodymyrBaydalka / docxjs

Docx rendering library
Apache License 2.0
1.29k stars 165 forks source link

Table of contents #4

Open afzali opened 4 years ago

afzali commented 4 years ago

Is there any way to get Table of content separately? And can its links be used?

VolodymyrBaydalka commented 11 months ago

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.