Interface IDocumentReader
Reads a document format into the mutable DocWright document model. Implementations ship in format packages (for example DocWright.Formats.Docx) and register with a DocumentFormatRegistry.
public interface IDocumentReader
Properties
- Format
Gets the format this reader handles.
Methods
- CanRead(Stream)
Determines whether the stream appears to contain this reader's format by sniffing its leading bytes. The stream must be seekable; implementations must restore Position before returning.
- Read(Stream, DocumentReadOptions, IConversionDiagnostics)
Reads a document from the stream.