Introducing DocumentExtractionClient Preview for .NET Document Extraction
Microsoft has introduced a preview of DocumentExtractionClient in Microsoft.Extensions.DocumentExtraction along with starter providers in the .NET AI Community Toolkit. This API unifies document extraction from files like PDFs, scans, images, and Office documents into a common structure for AI applications and data pipelines.
What changed From the source
A preview of DocumentExtractionClient has been released in Microsoft.Extensions.DocumentExtraction, accompanied by starter providers in the .NET AI Community Toolkit. The client provides a single API method named ExtractAsync that accepts a stream, file name identifier, and media type, returning an ExtractionDocument tree containing sections, text, tables, and images with source tracking.
The available starter providers include PdfPig for in-process PDF reading, a vision language model provider working with any IChatClient, Azure Content Understanding, Azure AI Document Intelligence, and Mistral OCR. Developers can also implement custom providers by deriving from DocumentExtractionClient and overriding ExtractAsync. The libraries require the .NET 11 SDK.
- PdfPig CommunityToolkit.DocumentExtraction.PdfPig runs in process for PDFs containing an existing text layer.
- Vision language model CommunityToolkit.DocumentExtraction.VisionLanguageModel works with local or hosted IChatClient implementations.
- Azure Content Understanding CommunityToolkit.DocumentExtraction.AzureContentUnderstanding provides cloud OCR, layout analysis, tables, figures, and custom analyzers.
- Azure AI Document Intelligence CommunityToolkit.DocumentExtraction.AzureDocumentIntelligence supplies cloud OCR, layout, tables, and page coordinates.
- Mistral OCR CommunityToolkit.DocumentExtraction.Mistral runs via Microsoft Foundry or the Mistral API for rapid OCR to Markdown.
At a glance · AI & .NET
What changedWhy it mattersWho should careUpgrade and migration considerations
Why it matters Analysis
Previously, developers had to rely on separate SDKs and object models for every individual parser or cloud service, requiring code rewrites whenever a tool was changed. DocumentExtractionClient establishes a standard abstraction analogous to IChatClient or IEmbeddingGenerator in Microsoft.Extensions.AI, enabling interchangeable providers and middleware layering.
Structured content recovery is essential for context engineering, agentic workflows, and retrieval-augmented generation. Preserving structural elements such as headings, tables, and page regions prevents the loss of context that occurs when flattening documents into unstructured word lists, ultimately helping language models deliver better answers.
Who should care Analysis
Software engineers building .NET applications that process unstructured files such as invoices, contracts, reports, and slide decks will benefit from this library. It is particularly relevant for developers working on search engines, data entry automation, archiving solutions, and AI applications relying on document context.
Teams wanting to decouple their ingestion logic from specific third-party OCR services or local parsers can use this abstraction to swap extraction backends without altering downstream consumption code.
Upgrade and migration considerations Analysis
Adopting DocumentExtractionClient requires the .NET 11 SDK. Because the packages are currently in preview, developers should account for potential API evolution and experimental warnings. The source material does not specify exact production go-live dates or step-by-step enterprise migration paths beyond utilizing the provided sample repository and standard NuGet package references.
Sources and further reading
- Original post on .NET Blog (original source)
Original: “Introducing DocumentExtractionClient (preview): Extract documents in .NET”, .NET Blog, published 24 Nov 2026, retrieved 24 Nov 2026. This article was drafted with AI assistance from the official source and passed automated fact and quality checks. Spotted a mistake? See our corrections policy.