SplitCriteria
Contents
[
Hide
]SplitCriteria enumeration
Specifies how the document is split into parts.
public enum SplitCriteria
Values
Name | Value | Description |
---|---|---|
Page | 0 | Specifies that the document is split into pages. |
SectionBreak | 1 | Specifies that the document is split into parts at a section break of any type. |
Style | 2 | Specifies that the document is split into parts at a paragraph formatted using the style specified in SplitStyle . |
Examples
Shows how to split document by pages.
string doc = MyDir + "Big document.docx";
Splitter.Split(doc, ArtifactsDir + "LowCode.SplitDocument.1.docx", new SplitOptions() { SplitCriteria = SplitCriteria.Page });
Splitter.Split(doc, ArtifactsDir + "LowCode.SplitDocument.2.docx", SaveFormat.Docx, new SplitOptions() { SplitCriteria = SplitCriteria.Page });
See Also
- namespace Aspose.Words.LowCode
- assembly Aspose.Words