Interface IDocumentExtractor
Turns one source item into one ExtractedDocument (spec 7.1). Every extractor opens
the source through OpenAsync; File.ReadAllBytes appears
nowhere in SP3, and a test asserts it.
public interface IDocumentExtractor
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.