API Reference
OfficeDocumentReader
Immutable, instance-scoped OfficeIMO document reader suitable for services and concurrent hosts.
Inheritance
- Object
- OfficeDocumentReader
Remarks
Handler routing is frozen when the reader is built. Other OfficeDocumentReader instances cannot change this reader's behavior.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OfficeDocumentReader.Default
- Method OfficeDocumentReaderBuilder.Build
Methods
public ReaderChunkHierarchyResult ChunkDocument(OfficeDocumentReadResult document, ReaderHierarchicalChunkingOptions options = null, CancellationToken cancellationToken = null) #ReaderChunkHierarchyResultToken-chunks an already-read rich document and builds its hierarchy.
Parameters
- document OfficeIMO.Reader.OfficeDocumentReadResult
- options OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public String ConvertToMarkdown(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #StringConverts a supported file to its portable Markdown representation.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Returns
The emitted Markdown, or an empty string when the reader produced no Markdown.
public String ConvertToMarkdown(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #StringConverts a supported stream to its portable Markdown representation. The caller retains ownership of the stream.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Returns
The emitted Markdown, or an empty string when the reader produced no Markdown.
public String ConvertToMarkdown(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #StringConverts supported bytes to their portable Markdown representation.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Returns
The emitted Markdown, or an empty string when the reader produced no Markdown.
public async Task<String> ConvertToMarkdownAsync(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<String>Asynchronously converts a supported file to its portable Markdown representation.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Returns
The emitted Markdown, or an empty string when the reader produced no Markdown.
public async Task<String> ConvertToMarkdownAsync(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<String>Asynchronously converts a supported stream to its portable Markdown representation. The caller retains ownership of the stream.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Returns
The emitted Markdown, or an empty string when the reader produced no Markdown.
public async Task<String> ConvertToMarkdownAsync(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<String>Asynchronously converts supported bytes to their portable Markdown representation.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Returns
The emitted Markdown, or an empty string when the reader produced no Markdown.
public ReaderDetectionResult Detect(String path, ReaderDetectionOptions options = null) #ReaderDetectionResultDetects a file kind from extension and bounded content evidence using this reader's handlers.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderDetectionOptions = null
public ReaderDetectionResult Detect(Stream stream, String sourceName = null, ReaderDetectionOptions options = null) #ReaderDetectionResultDetects a stream kind from source-name and bounded content evidence using this reader's handlers.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderDetectionOptions = null
public ReaderDetectionResult Detect(Byte[] bytes, String sourceName = null, ReaderDetectionOptions options = null) #ReaderDetectionResultDetects a byte payload kind from source-name and bounded content evidence using this reader's handlers.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderDetectionOptions = null
public Task<ReaderDetectionResult> DetectAsync(String path, ReaderDetectionOptions options = null, CancellationToken cancellationToken = null) #Task<ReaderDetectionResult>Asynchronously detects a file kind from extension and bounded content evidence using this reader's handlers.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderDetectionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<ReaderDetectionResult> DetectAsync(Stream stream, String sourceName = null, ReaderDetectionOptions options = null, CancellationToken cancellationToken = null) #Task<ReaderDetectionResult>Asynchronously detects a stream kind from source-name and bounded content evidence using this reader's handlers.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderDetectionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<ReaderDetectionResult> DetectAsync(Byte[] bytes, String sourceName = null, ReaderDetectionOptions options = null, CancellationToken cancellationToken = null) #Task<ReaderDetectionResult>Asynchronously detects a byte payload kind from source-name and bounded content evidence using this reader's handlers.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderDetectionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public ReaderInputKind DetectKind(String path) #ReaderInputKindDetects a reader input kind using this reader's handler configuration.
Parameters
- path System.String
public IEnumerable<String> EnumerateDocumentPaths(IEnumerable<String> paths, ReaderFolderOptions folderOptions = null, CancellationToken cancellationToken = null) #IEnumerable<String>Expands files and folders using this reader's registered extensions.
Parameters
- paths System.Collections.Generic.IEnumerable{System.String}
- folderOptions OfficeIMO.Reader.ReaderFolderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTableExportBundle> ExportTables(IEnumerable<ReaderTable> tables, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTableExportBundle>Exports tables as deterministic CSV, Markdown, and JSON payloads.
Parameters
- tables System.Collections.Generic.IEnumerable{OfficeIMO.Reader.ReaderTable}
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisualExportBundle> ExportVisuals(IEnumerable<ReaderVisual> visuals, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisualExportBundle>Exports visuals with deterministic payload and JSON sidecars.
Parameters
- visuals System.Collections.Generic.IEnumerable{OfficeIMO.Reader.ReaderVisual}
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<OfficeDocumentAsset> ExtractAssets(OfficeDocumentReadResult result, Func<OfficeDocumentAsset, Boolean> predicate = null, CancellationToken cancellationToken = null) #IReadOnlyList<OfficeDocumentAsset>Extracts assets from an already-read document result.
Parameters
- result OfficeIMO.Reader.OfficeDocumentReadResult
- predicate System.Func{OfficeIMO.Reader.OfficeDocumentAsset,System.Boolean} = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTable> ExtractMarkdownTables(String markdown, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTable>Extracts Markdown tables using the configured reader parsing contract.
Parameters
- markdown System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentStructuredExtractionResult ExtractStructured(OfficeDocumentReadResult document, OfficeDocumentStructuredExtractionOptions options = null, CancellationToken cancellationToken = null) #OfficeDocumentStructuredExtractionResultExtracts a bounded structured view from an already-read document.
Parameters
- document OfficeIMO.Reader.OfficeDocumentReadResult
- options OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTable> ExtractTables(IEnumerable<ReaderChunk> chunks, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTable>Extracts tables from already-read chunks.
Parameters
- chunks System.Collections.Generic.IEnumerable{OfficeIMO.Reader.ReaderChunk}
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisual> ExtractVisuals(IEnumerable<ReaderChunk> chunks, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisual>Extracts visuals from already-read chunks.
Parameters
- chunks System.Collections.Generic.IEnumerable{OfficeIMO.Reader.ReaderChunk}
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderHandlerCapability> GetCapabilities() #IReadOnlyList<ReaderHandlerCapability>Gets the capabilities configured for this reader.
public ReaderCapabilityManifest GetCapabilityManifest() #ReaderCapabilityManifestGets a machine-readable capability manifest for this reader.
public String GetCapabilityManifestJson(Boolean indented = false) #StringGets the capability manifest for this reader as JSON.
Parameters
- indented System.Boolean = false
public OfficeDocumentProcessingResult ProcessDocument(OfficeDocumentReadResult document, CancellationToken cancellationToken = null) #OfficeDocumentProcessingResultProcesses an already-read document through this reader's frozen pipeline.
Parameters
- document OfficeIMO.Reader.OfficeDocumentReadResult
- cancellationToken System.Threading.CancellationToken = null
public Task<OfficeDocumentProcessingResult> ProcessDocumentAsync(OfficeDocumentReadResult document, CancellationToken cancellationToken = null) #Task<OfficeDocumentProcessingResult>Processes an already-read document asynchronously through this reader's frozen pipeline.
Parameters
- document OfficeIMO.Reader.OfficeDocumentReadResult
- cancellationToken System.Threading.CancellationToken = null
public IEnumerable<ReaderChunk> Read(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #IEnumerable<ReaderChunk>Reads a supported file using this reader's frozen handler configuration.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IEnumerable<ReaderChunk> Read(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IEnumerable<ReaderChunk>Reads a supported stream using this reader's frozen handler configuration.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IEnumerable<ReaderChunk> Read(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IEnumerable<ReaderChunk>Reads supported bytes using this reader's frozen handler configuration.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<OfficeDocumentAsset> ReadAssets(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<OfficeDocumentAsset>Reads a file and returns assets attached to its rich document result.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<OfficeDocumentAsset> ReadAssets(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<OfficeDocumentAsset>Reads a caller-owned stream and returns assets attached to its rich document result.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<OfficeDocumentAsset> ReadAssets(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<OfficeDocumentAsset>Reads bytes and returns assets attached to their rich document result.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<IReadOnlyList<ReaderChunk>> ReadAsync(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<ReaderChunk>>Asynchronously reads a file into normalized chunks.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<IReadOnlyList<ReaderChunk>> ReadAsync(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<ReaderChunk>>Asynchronously reads a stream into normalized chunks. The caller retains ownership of the stream.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<IReadOnlyList<ReaderChunk>> ReadAsync(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<ReaderChunk>>Asynchronously reads bytes into normalized chunks.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentReadResult ReadDocument(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #OfficeDocumentReadResultReads a file into the shared rich document envelope.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentReadResult ReadDocument(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #OfficeDocumentReadResultReads a stream into the shared rich document envelope.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentReadResult ReadDocument(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #OfficeDocumentReadResultReads bytes into the shared rich document envelope.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<OfficeDocumentReadResult> ReadDocumentAsync(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<OfficeDocumentReadResult>Asynchronously reads a file into the shared rich document envelope.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<OfficeDocumentReadResult> ReadDocumentAsync(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<OfficeDocumentReadResult>Asynchronously reads a stream into the shared rich document envelope. The caller retains ownership of the stream.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<OfficeDocumentReadResult> ReadDocumentAsync(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #Task<OfficeDocumentReadResult>Asynchronously reads bytes into the shared rich document envelope.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public String ReadDocumentJson(String path, ReaderOptions options = null, Boolean indented = false, CancellationToken cancellationToken = null) #StringReads a file into the shared rich document JSON envelope.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- indented System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public String ReadDocumentJson(Stream stream, String sourceName = null, ReaderOptions options = null, Boolean indented = false, CancellationToken cancellationToken = null) #StringReads a stream into the shared rich document JSON envelope.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- indented System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public String ReadDocumentJson(Byte[] bytes, String sourceName = null, ReaderOptions options = null, Boolean indented = false, CancellationToken cancellationToken = null) #StringReads bytes into the shared rich document JSON envelope.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- indented System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public Task ReadDocumentsAsCompletedAsync(IEnumerable<String> paths, Action<ReaderDocumentReadOutcome> onCompleted, ReaderOptions options = null, ReaderBatchOptions batchOptions = null, CancellationToken cancellationToken = null) #TaskAsynchronously reads a bounded set of files and reports each resilient outcome without retaining completed document results for the lifetime of the whole batch.
Parameters
- paths System.Collections.Generic.IEnumerable{System.String}
- onCompleted System.Action{OfficeIMO.Reader.ReaderDocumentReadOutcome}
- options OfficeIMO.Reader.ReaderOptions = null
- batchOptions OfficeIMO.Reader.ReaderBatchOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<IReadOnlyList<OfficeDocumentReadResult>> ReadDocumentsAsync(IEnumerable<String> paths, ReaderOptions options = null, ReaderBatchOptions batchOptions = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<OfficeDocumentReadResult>>Asynchronously reads a bounded set of files. Results retain the input path order.
Parameters
- paths System.Collections.Generic.IEnumerable{System.String}
- options OfficeIMO.Reader.ReaderOptions = null
- batchOptions OfficeIMO.Reader.ReaderBatchOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<IReadOnlyList<ReaderDocumentReadOutcome>> ReadDocumentsDetailedAsync(IEnumerable<String> paths, ReaderOptions options = null, ReaderBatchOptions batchOptions = null, Action<ReaderDocumentReadOutcome> onCompleted = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<ReaderDocumentReadOutcome>>Asynchronously reads a bounded set of files and captures a success or error outcome for every path.
Parameters
- paths System.Collections.Generic.IEnumerable{System.String}
- options OfficeIMO.Reader.ReaderOptions = null
- batchOptions OfficeIMO.Reader.ReaderBatchOptions = null
- onCompleted System.Action{OfficeIMO.Reader.ReaderDocumentReadOutcome} = null
- cancellationToken System.Threading.CancellationToken = null
public IEnumerable<ReaderChunk> ReadFolder(String folderPath, ReaderFolderOptions folderOptions = null, ReaderOptions options = null, Action<ReaderProgress> onProgress = null, CancellationToken cancellationToken = null) #IEnumerable<ReaderChunk>Enumerates a folder using this reader's registered extensions and handlers.
Parameters
- folderPath System.String
- folderOptions OfficeIMO.Reader.ReaderFolderOptions = null
- options OfficeIMO.Reader.ReaderOptions = null
- onProgress System.Action{OfficeIMO.Reader.ReaderProgress} = null
- cancellationToken System.Threading.CancellationToken = null
public ReaderIngestResult ReadFolderDetailed(String folderPath, ReaderFolderOptions folderOptions = null, ReaderOptions options = null, Boolean includeChunks = true, Action<ReaderProgress> onProgress = null, CancellationToken cancellationToken = null) #ReaderIngestResultReads a folder and returns materialized ingestion details.
Parameters
- folderPath System.String
- folderOptions OfficeIMO.Reader.ReaderFolderOptions = null
- options OfficeIMO.Reader.ReaderOptions = null
- includeChunks System.Boolean = true
- onProgress System.Action{OfficeIMO.Reader.ReaderProgress} = null
- cancellationToken System.Threading.CancellationToken = null
public IEnumerable<ReaderSourceDocument> ReadFolderDocuments(String folderPath, ReaderFolderOptions folderOptions = null, ReaderOptions options = null, Action<ReaderProgress> onProgress = null, CancellationToken cancellationToken = null) #IEnumerable<ReaderSourceDocument>Enumerates a folder as one source-level payload per file.
Parameters
- folderPath System.String
- folderOptions OfficeIMO.Reader.ReaderFolderOptions = null
- options OfficeIMO.Reader.ReaderOptions = null
- onProgress System.Action{OfficeIMO.Reader.ReaderProgress} = null
- cancellationToken System.Threading.CancellationToken = null
public ReaderChunkHierarchyResult ReadHierarchical(String path, ReaderOptions readerOptions = null, ReaderHierarchicalChunkingOptions chunkingOptions = null, CancellationToken cancellationToken = null) #ReaderChunkHierarchyResultReads a file through configured processors and returns hierarchical chunks.
Parameters
- path System.String
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- chunkingOptions OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public ReaderChunkHierarchyResult ReadHierarchical(Stream stream, String sourceName = null, ReaderOptions readerOptions = null, ReaderHierarchicalChunkingOptions chunkingOptions = null, CancellationToken cancellationToken = null) #ReaderChunkHierarchyResultReads a stream through configured processors and returns hierarchical chunks.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- chunkingOptions OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public ReaderChunkHierarchyResult ReadHierarchical(Byte[] bytes, String sourceName = null, ReaderOptions readerOptions = null, ReaderHierarchicalChunkingOptions chunkingOptions = null, CancellationToken cancellationToken = null) #ReaderChunkHierarchyResultReads bytes through configured processors and returns hierarchical chunks.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- chunkingOptions OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<ReaderChunkHierarchyResult> ReadHierarchicalAsync(String path, ReaderOptions readerOptions = null, ReaderHierarchicalChunkingOptions chunkingOptions = null, CancellationToken cancellationToken = null) #Task<ReaderChunkHierarchyResult>Asynchronously reads a file through configured processors and returns hierarchical chunks.
Parameters
- path System.String
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- chunkingOptions OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<ReaderChunkHierarchyResult> ReadHierarchicalAsync(Stream stream, String sourceName = null, ReaderOptions readerOptions = null, ReaderHierarchicalChunkingOptions chunkingOptions = null, CancellationToken cancellationToken = null) #Task<ReaderChunkHierarchyResult>Asynchronously reads a stream through configured processors and returns hierarchical chunks.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- chunkingOptions OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<ReaderChunkHierarchyResult> ReadHierarchicalAsync(Byte[] bytes, String sourceName = null, ReaderOptions readerOptions = null, ReaderHierarchicalChunkingOptions chunkingOptions = null, CancellationToken cancellationToken = null) #Task<ReaderChunkHierarchyResult>Asynchronously reads bytes through configured processors and returns hierarchical chunks.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- chunkingOptions OfficeIMO.Reader.ReaderHierarchicalChunkingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public ReaderPathDocumentResult ReadPathDocumentsDetailed(String path, ReaderFolderOptions folderOptions = null, ReaderOptions options = null, Boolean includeDocumentChunks = true, Nullable<Int32> maxReturnedChunks = null, Action<ReaderProgress> onProgress = null, CancellationToken cancellationToken = null) #ReaderPathDocumentResultReads a file or folder and returns source-level document payloads with optional chunk shaping.
Parameters
- path System.String
- folderOptions OfficeIMO.Reader.ReaderFolderOptions = null
- options OfficeIMO.Reader.ReaderOptions = null
- includeDocumentChunks System.Boolean = true
- maxReturnedChunks System.Nullable{System.Int32} = null
- onProgress System.Action{OfficeIMO.Reader.ReaderProgress} = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentStructuredExtractionResult ReadStructured(String path, ReaderOptions readerOptions = null, OfficeDocumentStructuredExtractionOptions structuredOptions = null, CancellationToken cancellationToken = null) #OfficeDocumentStructuredExtractionResultReads a file through this reader's processors and extracts a bounded structured view.
Parameters
- path System.String
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- structuredOptions OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentStructuredExtractionResult ReadStructured(Stream stream, String sourceName = null, ReaderOptions readerOptions = null, OfficeDocumentStructuredExtractionOptions structuredOptions = null, CancellationToken cancellationToken = null) #OfficeDocumentStructuredExtractionResultReads a stream through this reader's processors and extracts a bounded structured view.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- structuredOptions OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public OfficeDocumentStructuredExtractionResult ReadStructured(Byte[] bytes, String sourceName = null, ReaderOptions readerOptions = null, OfficeDocumentStructuredExtractionOptions structuredOptions = null, CancellationToken cancellationToken = null) #OfficeDocumentStructuredExtractionResultReads bytes through this reader's processors and extracts a bounded structured view.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- structuredOptions OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<OfficeDocumentStructuredExtractionResult> ReadStructuredAsync(String path, ReaderOptions readerOptions = null, OfficeDocumentStructuredExtractionOptions structuredOptions = null, CancellationToken cancellationToken = null) #Task<OfficeDocumentStructuredExtractionResult>Asynchronously reads a file through this reader's processors and extracts a bounded structured view.
Parameters
- path System.String
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- structuredOptions OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<OfficeDocumentStructuredExtractionResult> ReadStructuredAsync(Stream stream, String sourceName = null, ReaderOptions readerOptions = null, OfficeDocumentStructuredExtractionOptions structuredOptions = null, CancellationToken cancellationToken = null) #Task<OfficeDocumentStructuredExtractionResult>Asynchronously reads a stream through this reader's processors and extracts a bounded structured view.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- structuredOptions OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<OfficeDocumentStructuredExtractionResult> ReadStructuredAsync(Byte[] bytes, String sourceName = null, ReaderOptions readerOptions = null, OfficeDocumentStructuredExtractionOptions structuredOptions = null, CancellationToken cancellationToken = null) #Task<OfficeDocumentStructuredExtractionResult>Asynchronously reads bytes through this reader's processors and extracts a bounded structured view.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- structuredOptions OfficeIMO.Reader.OfficeDocumentStructuredExtractionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTableExportBundle> ReadTableExports(String path, ReaderOptions options = null, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTableExportBundle>Reads a file and exports its tables as deterministic CSV, Markdown, and JSON payloads.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTableExportBundle> ReadTableExports(Stream stream, String sourceName = null, ReaderOptions options = null, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTableExportBundle>Reads a caller-owned stream and exports its tables as deterministic CSV, Markdown, and JSON payloads.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTableExportBundle> ReadTableExports(Byte[] bytes, String sourceName = null, ReaderOptions options = null, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTableExportBundle>Reads bytes and exports their tables as deterministic CSV, Markdown, and JSON payloads.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTable> ReadTables(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTable>Reads a file and returns discovered tables in source order.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTable> ReadTables(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTable>Reads a caller-owned stream and returns discovered tables in source order.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderTable> ReadTables(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderTable>Reads bytes and returns discovered tables in source order.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisualExportBundle> ReadVisualExports(String path, ReaderOptions options = null, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisualExportBundle>Reads a file and exports its visuals with deterministic payload and JSON sidecars.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisualExportBundle> ReadVisualExports(Stream stream, String sourceName = null, ReaderOptions options = null, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisualExportBundle>Reads a caller-owned stream and exports its visuals with deterministic payload and JSON sidecars.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisualExportBundle> ReadVisualExports(Byte[] bytes, String sourceName = null, ReaderOptions options = null, Boolean indentedJson = false, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisualExportBundle>Reads bytes and exports their visuals with deterministic payload and JSON sidecars.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- indentedJson System.Boolean = false
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisual> ReadVisuals(String path, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisual>Reads a file and returns visual payloads in source order.
Parameters
- path System.String
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisual> ReadVisuals(Stream stream, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisual>Reads a caller-owned stream and returns visual payloads in source order.
Parameters
- stream System.IO.Stream
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
public IReadOnlyList<ReaderVisual> ReadVisuals(Byte[] bytes, String sourceName = null, ReaderOptions options = null, CancellationToken cancellationToken = null) #IReadOnlyList<ReaderVisual>Reads bytes and returns visual payloads in source order.
Parameters
- bytes System.Byte[]
- sourceName System.String = null
- options OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public static OfficeDocumentReader Default { get; } #Gets an immutable reader with no configured format handlers.
public Int32 MaxConcurrentReads { get; } #Gets the maximum number of asynchronous operations allowed in flight for this reader.
public OfficeDocumentProcessorPipeline ProcessorPipeline { get; } #Gets this reader's immutable ordered processor pipeline.
public OfficeDocumentProcessorFailureBehavior ProcessorFailureBehavior { get; } #Gets the configured processor failure behavior.