Split single document into multiple docx based on heading

I want to split a single word document into Multiple docx file based on heading style. this can be done using HtmlSaveOptions. But i have to save it as docx format

@joelthomas Please see our documentation to learn how to extract content from the document based on style:
https://docs.aspose.com/words/net/how-to-extract-selected-content-between-nodes-in-a-document/#extract-content-between-paragraphs-based-on-style

@alexey.noskov thank you for the response. I am not able to see any sample code in the able link, can you please provide me sample code for the same

@joelthomas You can find source code here:
https://github.com/aspose-words/Aspose.Words-for-.NET/tree/master/Examples/DocsExamples/DocsExamples/Programming%20with%20Documents/Contents%20Management