Class DocumentSplitter
Splits a document into independent structural parts without modifying the source document.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class DocumentSplitter
Constructors
DocumentSplitter(Document, DocumentSplitOptions)
Initializes a splitter for the specified document and options.
Declaration
public DocumentSplitter(Document sourceDocument, DocumentSplitOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | sourceDocument | The document to split. |
| DocumentSplitOptions | options | The structural split options. |
Methods
Split()
Splits the source document according to the configured structural criteria.
Declaration
public IReadOnlyList<DocumentSplitPart> Split()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<DocumentSplitPart> | Independent document parts in source order. |
SplitToHtml(HtmlSplitOptions)
Splits the source document into structural topics and writes each topic as an HTML file.
Declaration
public HtmlSplitResult SplitToHtml(HtmlSplitOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| HtmlSplitOptions | options | The structural and HTML output options. |
Returns
| Type | Description |
|---|---|
| HtmlSplitResult | The generated topic and contents file metadata. |