HtmlSaveOptions.DocumentSplitHeadingLevel
HtmlSaveOptions DocumentSplitHeadingLevel property. Specifies the maximum level of headings at which to split the document. Default value is 2.
HtmlSaveOptions.DocumentSplitHeadingLevel property
Specifies the maximum level of headings at which to split the document. Default value is 2
.
public int DocumentSplitHeadingLevel { get; set; }
Remarks
When DocumentSplitCriteria
includes HeadingParagraph and this property is set to a value from 1 to 9, the document will be split at paragraphs formatted using Heading 1, Heading 2 , Heading 3 etc. styles up to the specified heading level.
By default, only Heading 1 and Heading 2 paragraphs cause the document to be split. Setting this property to zero will cause the document not to be split at heading paragraphs at all.
Examples
Shows how to specify document split criteria.
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.Epub);
htmlSaveOptions.DocumentSplitCriteria = HtmlDocumentSplitCriteria.HeadingParagraph;
htmlSaveOptions.DocumentSplitHeadingLevel = 1;
Converter.Create()
.From(MyDir + "TestSpliter.docx")
.To(ArtifactsDir + "HtmlSaveOptions.DocumentSplitCriteria.epub", htmlSaveOptions)
.Execute();
See Also
- class HtmlSaveOptions
- namespace Wordize.Saving
- assembly Wordize