Namespace DocToolkit.Extensions.DependencyInjection
Classes
- DocToolkitOptions
Options controlling the services registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- ServiceCollectionExtensions
Registers DocToolkit's DI-friendly services.
Interfaces
- IDocToDocxConverter
Reads a Word 97-2003 binary document (.doc) and converts it to a .docx package, or reads its text directly. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxCompare
Compares two versions of a Word document and returns the later one with the differences marked as tracked changes. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxEditor
Creates, reads and edits Word (.docx) documents. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxForm
Reads, checks and fills the content controls a Word document carries — the format's own answer to a fill-in form. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxMailMerge
Fills a Word mail-merge template — a document carrying
MERGEFIELDinstructions — from a set of named values. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxReview
Reads and resolves a Word document's review state — the comments and tracked changes it carries from having been through review. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxToHtmlConverter
Converts a Word (.docx) package to a complete HTML document, keeping the structure ExtractText(byte[]) throws away. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
The result is a complete HTML document, not a fragment, and is self-contained - images come back as data: URIs.
- IDocxToMarkdownConverter
Converts a Word (.docx) package to Markdown, keeping the structure ExtractText(byte[]) throws away. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
A heading becomes
#and a table becomes a pipe table; images come back as data: URIs.
- IDocxToPdfConverter
Renders a Word (.docx) package to PDF. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IDocxToPdfPreflight
Lists what a document CONTAINS that IDocxToPdfConverter may not represent, so a caller converting third-party documents knows which ones need a human to look at them. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IHtmlToDocxConverter
Converts HTML to a Word (.docx) package. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?); remote image download is controlled once, at registration, via AllowRemoteImageDownload, and bounded by RemoteImage.
- IHtmlToPdfConverter
Converts HTML straight to PDF by pivoting through DOCX. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?); remote image download is controlled once, at registration, via AllowRemoteImageDownload, and bounded by RemoteImage.
- IMarkdownEditor
Reads and updates an existing Markdown document — front matter, headings, tables, and one section's content — without converting to another format first. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IMarkdownToDocxConverter
Converts Markdown to a Word (.docx) package, completing the round trip IDocxToMarkdownConverter opens. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IMarkdownToPdfConverter
Converts Markdown to PDF by way of DOCX. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IPdfEditor
Operations on a PDF that already exists — page count, merge, page extraction and document information. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IPptxToPdfConverter
Renders an PowerPoint (.pptx) presentation to PDF. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
One page per slide, at the deck's own slide geometry rather than a paper size.
- IPresentationEditor
Creates, reads and edits PowerPoint (.pptx) presentations. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IWorkbookEditor
Creates, reads and edits Excel (.xlsx) workbooks. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IXlsxToCsvConverter
Exports one sheet of a workbook as CSV (RFC 4180). Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IXlsxToHtmlConverter
Exports one sheet of a workbook as an HTML table. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- IXlsxToPdfConverter
Renders an Excel (.xlsx) workbook to PDF. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).