Namespace DocToolkit.Extensions.DependencyInjection
Classes
- DocToolkitOptions
Options controlling the services registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).
- ServiceCollectionExtensions
Registers DocToolkit's DI-friendly services.
Interfaces
- IDocxEditor
Creates, reads and edits Word (.docx) documents. 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>?).
- 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.
- 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>?).
- IXlsxToPdfConverter
Renders an Excel (.xlsx) workbook to PDF. Registered by AddDocToolkit(IServiceCollection, Action<DocToolkitOptions>?).