Class DocxTextExtractor
Spec 7.5's DOCX extractor over DocumentFormat.OpenXml 3.5.1. Heading levels come from the
outline level — the paragraph's own w:outlineLvl, then the style's, through the styles
part — and never from a style name; runs are merged; tables are pipe-joined rows; headers and
footers are excluded by default; and above StreamingThresholdBytes
the main part is read with OpenXmlPartReader instead of the DOM. OpenXmlValidator
is never called.
public sealed class DocxTextExtractor : IDocumentExtractor
- Inheritance
-
DocxTextExtractor
- Implements
- Inherited Members
Constructors
Properties
- Extensions
Lower-case, dotted.
- Id
Stable; feeds the recipe hash.
- MediaTypes
The media types this extractor claims.
- Version
Bump when output changes for identical input.
Methods
- CanExtract(DocumentSourceItem)
A last word over the registry's media-type and extension match.
- ExtractAsync(DocumentSourceItem, ExtractionContext, CancellationToken)
Extracts one document. The stream is opened here, not by the caller, and the returned document's block offsets index Text.