We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Split Word document

I want to split a Word document into smaller documents.
The documentation said something about using the relevant functions. What are the relevant functions?


If you want to extract or split the document page wise, you can use Document.ExtractPages method. It returns the Document object representing specified range of pages.

Following code example shows how to get specified range of pages from the document.

Document doc = new Document(MyDir + "Layout entities.docx");

doc = doc.ExtractPages(0, 2);

doc.Save(MyDir + "Document.ExtractPages.docx");

You may extract the content between different nodes of document. The detail and code is explained in the following article.

If you still face any issue, please share some more detail about your query along with sample input and expected output documents. We will then provide you more information about your query

What is the relation between the margin and the indent?


The margin is space left around the page in MS Word document. Please check the attached image for detail.
margin.png (44.7 KB)

The indent is applied to paragraphs. E.g. If you want to leave whitespace before paragraph, you can set left indent to paragraphs. See the attached image for detail.
left indent.png (29.4 KB)