I want to get all the contents(including the paragraph, table, chart, picture, and shapes) under the each heading. This is the sample doc Sample_doc_.zip (3.6 MB)
I want to get all content belongs to each heading. Please help me to find a way for this.
Also sometimes the content will be invisible. So can you please tell me how to identify (or extract) the hidden content.
I used the same method, but I am not able to find the last heading content. Because there is np mark for the end. Can you please tell me how to find the last node(it could table, picture,etc…) of the doc ?
Following code example shows how to bookmark the paragraphs having heading style and extract the content. You can get code of ExtractContent and GenerateDocument methods from the article shared in my previous post.