-
I want to parse a word document and get all the level headings (i.e. table of contents) and be able to distinguish the level of each heading, to retrieve the tree structure of the entire document. But I didn't find the corresponding property on the paragraph object or something else. Please tell me how to get the table of content of WORD, or where there are examples. |
Beta Was this translation helpful? Give feedback.
Answered by
evolcano
Apr 1, 2024
Replies: 1 comment
-
Solution: Use XWPFRun.GetStyle() to get the level such as 'Heading 1'. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
evolcano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution: Use XWPFRun.GetStyle() to get the level such as 'Heading 1'.