Hi All,
I am using Aspose Words 13.2.0 to generate and add table of contents (TOC), figures (TOF) and tables (TOT) while converting MS Word documents to PDF. I have a few queries regarding this :
1. How do I check whether the MS Word document I have already contains TOC/ TOF / TOT? I need to check if these are present and add them only when they are absent. I do not want the document to end up with 2 TOCs. Can you please guide me to the appropriate API to achieve this?
2. While adding TOT/ TOC/ TOF, how do I recognize that these are not empty? For example, while adding TOC to a word document that has only 10 lines of plain text, I get a “No table of contents entries found.” message. I want to check if there are TOC entries before trying to add it and avoid the above message.
Thanks,
Smitha