Enum DocumentSplitCriteria
Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.3.0)
Specifies how the document is split into parts when saving to Aspose.Words.SaveFormat.Html, Aspose.Words.SaveFormat.Epub or Aspose.Words.SaveFormat.Azw3 format.
[Flags]
public enum DocumentSplitCriteria
Fields
ColumnBreak = 2
The document is split into parts at column breaks. A column break can be specified by a Aspose.Words.ControlChar.ColumnBreak character or a section break specifying start of new section in a new column.
HeadingParagraph = 8
The document is split into parts at a paragraph formatted using a heading style Heading 1, Heading 2 etc. Use together with Aspose.Words.Saving.HtmlSaveOptions.DocumentSplitHeadingLevel to specify the heading levels (from 1 to the specified level) at which to split.
None = 0
The document is not split.
PageBreak = 1
The document is split into parts at explicit page breaks.
A page break can be specified by a Aspose.Words.ControlChar.PageBreak character,
a section break specifying start of new section on a new page,
or a paragraph that has its Aspose.Words.ParagraphFormat.PageBreakBefore property set to true
.
SectionBreak = 4
The document is split into parts at a section break of any type.
Remarks
Aspose.Words.Saving.DocumentSplitCriteria is a set of flags which can be combined. For instance you can split the document at page breaks and heading paragraphs in the same export operation.
Different criteria can partially overlap. For instance, Heading 1 style is frequently given Aspose.Words.ParagraphFormat.PageBreakBefore property so it falls under two criteria: Aspose.Words.Saving.DocumentSplitCriteria.PageBreak and Aspose.Words.Saving.DocumentSplitCriteria.HeadingParagraph. Some section breaks can cause page breaks and so on. In typical cases specifying only one flag is the most practical option.
Aspose.Words.Saving.HtmlSaveOptions.DocumentSplitCriteria