Extracting all document heading style text from document

Hello,

I want to extract all the text of “Heading” styles for a particular document.
So for a document…

My heading 1 (“Heading 1” style)
My heading 2 (“Heading 2” style)
Another heading 1 (“Heading 1” style)

I would like to have a list of
“My heading 1”, “My heading 2”, “Another heading 1”

How is it possible to do this?

Thanks,
JP

Hi

Thanks for your inquiry. Yes, of course you can do that using Aspose.Words. I think code provided in the following forum thread could be useful for you:
https://forum.aspose.com/t/94231
Please let me know in case of any issues.
Best regards.