From your C# code
Extract a file path, stream or byte array in one call and work with the result as objects.
Doconut Extractor is a document text extraction SDK for .NET. It reads PDF, Word, Excel and XPS files on your own server and returns their text, tables and metadata in reading order, as JSON or Markdown. Add the optional OCR package to read scanned pages too.

Extractor runs inside your own Doconut application, with no network calls and no AI models. Documents never leave your server, and on the same Doconut version the same document always gives the same JSON, so results are easy to test, compare and index.
Call it from C# in a background job, drop the ready-made widget into a page, or build your own interface on the documented endpoints.
Extract a file path, stream or byte array in one call and work with the result as objects.
Users drop a file, see every extracted block and download the result as JSON or Markdown.
Three documented endpoints cover upload, extraction and download.
The widget works on its own or next to a Doconut viewer.
Ordered blocks with their page and position, document metadata, and a clear report of anything hidden.
The same document gives the same JSON on the same Doconut version, so results are easy to test and compare.
A Markdown copy of the same result, with headings, lists and tables, and anchors that link each block back to the document.
Install the optional OCR package and pages without a text layer, such as scans, are read too. Pages that already have text are not sent to OCR.
Hidden text, comments, tracked changes, hidden sheets and speaker notes are listed separately, never mixed into the extracted text.
Click an extracted block and the Doconut viewer goes to its page and highlights it.
If a document is larger than the page or cell limits, extraction stops with an error instead of returning part of it.

Every extraction gives you both views of the same result.
The source of truth for your pipeline: a stable layout and the same output for the same input.
A clean copy with headings, lists and tables, plus anchors that point back to each block.
Register Extractor inside AddDoconut, resolve DocumentExtractor from dependency injection and call ExtractAsync. This excerpt combines the documented registration and basic extraction snippets; the surrounding application supplies builder, app, ct and the required imports.
builder.Services.AddDoconut(options =>
{
options.LicensePath = "Doconut.Viewer.lic";
options.AddPlugin<Doconut.Plugins.Extractor.ExtractorPlugin>();
});
var extractor = app.Services.GetRequiredService<DocumentExtractor>();
ExtractionResult result = await extractor.ExtractAsync("contract.docx", ct: ct);
Install the Extractor package at the same version as its matching Doconut core package. OCR requires the optional engine package for that framework.
Doconut.NET8.Extractor; optional OCR: Doconut.NET8.Engines.Ocr. Windows and glibc-based Linux x64 (not Alpine/musl).
Doconut.NET6.Extractor; optional OCR: Doconut.NET6.Engines.Ocr. Windows and glibc-based Linux x64 (not Alpine/musl).
Doconut.NETStandard.Extractor; optional OCR: Doconut.NETStandard.Engines.Ocr.
Doconut.NETFramework.Extractor; optional OCR: Doconut.NETFramework.Engines.Ocr.
Extractor requires a license granting the Extractor capability. Place Doconut.Viewer.Extractor.lic beside Doconut.Viewer.lic.
Temporary Demo/NFR licenses are accepted and produce output with an evaluation watermark.
A paid license granting Extractor, used within its version window, produces output without the evaluation watermark.
AddDoconut() throws at startup for a missing license, a legacy TRIAL file, a license without Extractor or a paid license outside its version window.
Supply the license through LicenseStream, LicenseContent or LicensePath, in that precedence order. Restart the application after changing the license.
Choose the license that matches how you deploy document text extraction in your Doconut application.
| License | Price | Best for | Includes |
|---|---|---|---|
Developer License | $299 | One developer building or maintaining a Doconut extraction integration. | Licensed access to the Extractor plugin for development and project implementation. |
Site License | $899 | A production deployment owned by one organization. | Document text extraction for site-level deployments that need predictable commercial coverage. |
SDK License | $1,999 | Teams embedding Doconut into redistributed or multi-client software. | Broader licensing for SDK-style distribution and customer-facing product scenarios. |
Prices shown are for the Extractor plugin add-on. Final licensing terms depend on your Doconut license type and deployment model.
Buy Extractor PluginAny .NET application that needs the text inside its documents.
Extraction runs on your own server; no document is sent to an external service.
API details for PDF extraction, document to Markdown workflows and OCR integration.
Resolve DocumentExtractor from dependency injection and call DocumentExtractor.ExtractAsync with a supported document. The Extractor documentation names PDF, Word and Excel inputs. The returned ExtractionResult contains ordered blocks, metadata, hidden content information and warnings; use ExtractionResult.ToJson() or ExtractionResult.ToMarkdown() for output.
Call DocumentExtractor.ExtractAsync with the PDF, then call ExtractionResult.ToJson() on the result. For the same input and SDK version, ToJson() produces identical JSON byte for byte. For pages processed by OCR, this guarantee also requires the same OCR engine version.
Call DocumentExtractor.ExtractAsync, then use ExtractionResult.ToMarkdown() to create a readable view of the extracted result. The Markdown begins with YAML front matter and places a <!-- ref:<id> --> anchor before each block for viewer linking. ExtractionResult.ToJson() remains the source of truth.
For .NET 8, install Doconut.NET8.Engines.Ocr alongside Doconut.NET8.Extractor and use ExtractOptions.Ocr = OcrMode.Auto. OcrMode.Auto processes only pages without a native text layer; OcrMode.Off disables OCR. Check ExtractionResult.Warnings for ExtractionWarningCodes.OcrUnavailable when pages without text could not be read.
DocumentExtractor.ExtractAsync processes documents entirely on your server without network calls or AI models, and the document stays on your host. For scanned pages, install the optional OCR engine package and use ExtractOptions.Ocr = OcrMode.Auto. ExtractionResult.Warnings reports ExtractionWarningCodes.OcrUnavailable if OCR cannot read pages because the engine is missing, unlicensed or unavailable on the platform.
Doconut Extractor reports hidden text, comments, tracked changes and hidden spreadsheet sheets, rows and columns through ExtractionResult.Hidden rather than ExtractionResult.Blocks. ExtractOptions.IncludeHidden is reserved and does not enable extraction of that content into Blocks. ExtractOptions.CheckVisibility controls render-based visibility checks for PDF and XPS; if rendering fails, ExtractionWarningCodes.VisibilityUnchecked warns that some visually hidden text may remain.
Use DocumentExtractor.ExtractAsync with ExtractOptions.Password to supply a document password through the C# API. The Extractor widget does not accept a password, so use the C# API for this workflow.
ExtractOptions.MaxPages defaults to 500, and ExtractOptions.MaxCells defaults to 1,000,000 for spreadsheets. Exceeding either limit fails extraction instead of returning a truncated result. MaxCells counts cells in the used ranges of visible sheets, including empty cells within those ranges.
Essayer, créer, acheter
Turn PDF, Word and spreadsheet files into structured JSON or Markdown on your own server, without sending them to an external service. The live demo shows the Viewer and the Annotation, Search, Converter and Signer plugins on sample documents.
La démo en direct fonctionne sur des documents d'exemple. Pas d'inscription, pas d'installation.
Commencez avec le package NuGet, puis suivez le guide d'installation pour votre framework.
dotnet add package Doconut.NET8.ExtractorTous les formats et fonctionnalités pendant 30 jours, puis choisissez la licence qui convient.
Demander une licence d'évaluation de 30 joursObtenez une licence temporaire gratuiteUne licence à durée limitée qui fonctionne comme une licence commerciale, pour tester sur votre propre serveur.