Foliant.Orchestration 1.8.1

dotnet add package Foliant.Orchestration --version 1.8.1
                    
NuGet\Install-Package Foliant.Orchestration -Version 1.8.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Foliant.Orchestration" Version="1.8.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Foliant.Orchestration" Version="1.8.1" />
                    
Directory.Packages.props
<PackageReference Include="Foliant.Orchestration" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Foliant.Orchestration --version 1.8.1
                    
#r "nuget: Foliant.Orchestration, 1.8.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Foliant.Orchestration@1.8.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Foliant.Orchestration&version=1.8.1
                    
Install as a Cake Addin
#tool nuget:?package=Foliant.Orchestration&version=1.8.1
                    
Install as a Cake Tool

Foliant

Layout-aware PDF document AI for .NET — fully local, no Python sidecar, no cloud APIs.

Foliant extracts structured content (Markdown / JSON / typed objects) from PDFs the way commercial document-intelligence services do: layout detection, per-region OCR, table-structure recognition, and reading-order assembly — all running on ONNX Runtime, entirely on your machine. Documents never leave the host.

using Foliant.Pipeline;

// Models download once into a local cache (SHA-256 verified), then everything runs offline.
using var processor = await FoliantProcessor.CreateDefaultAsync();
var result = await processor.ProcessAsync(File.ReadAllBytes("document.pdf"));

Console.WriteLine(result.Markdown);          // layout-aware Markdown
string json = result.ToJson(indented: true); // structured regions, tables, bounds, confidence

Why Foliant

  • Born-digital fast path — pages with an embedded text layer take characters verbatim (layout still analyzed from pixels); OCR runs only where needed. ~0.4 s/page at 300 DPI.
  • Forms done right — recursive ruling-line decomposition keeps checkbox marks, field labels, and values associated on government-style forms; table grids come from a hybrid of Microsoft TableTransformer and rule-based ruling analysis, with a grid-fit guard that renders a mis-detected form block as ordered prose instead of a scrambled table. Opt-in Foliant.Forms.* profile packs add typed key-value extraction for known form families.
  • Self-verifying — every page enforces a coverage invariant (every extracted line provably lands in the output or is intentional page furniture), reports word recall against the PDF's own text layer, and scores reading-order fidelity against that text layer's order — so a page that keeps every word but permutes it is caught (word recall alone is order-blind). On a 474-page federal-RFP reference corpus: 99.7% average word recall, 100% of pages ≥95%, zero text loss, zero fabricated form values.
  • Pluggable — every stage (layout, OCR, tables, reading order) is an interface in Foliant.Core; swap any backend without forking.

Packages

Package Purpose
Foliant.Pipeline Batteries-included default pipeline (start here)
Foliant.Core Interfaces + DTOs only — for consumers and backend authors
Foliant.Layout.DocLayoutNet DocLayout-YOLO layout detection backend
Foliant.Ocr.PaddleOcr PaddleOCR detection/recognition backend with rotated-text handling
Foliant.Tables.TableTransformer TableTransformer + ruling-grid table structure backend
Foliant.Models Model catalog + verified local cache (weights from Hugging Face)

Model weights (~280 MB total) are not inside the packages; they download on first use with checksum verification, or pre-fetch them yourself and point FoliantProcessor.CreateDefault at the directory.

Apache 2.0. English-language documents. Scanned-document support ships today — deskew, denoise, contrast normalization, and coarse page-orientation correction (0/90/180/270°); page dewarp and low-DPI super-resolution are on the roadmap.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.8.1 117 7/20/2026
1.7.1 109 7/12/2026
1.7.0 108 7/12/2026
1.6.0 113 7/5/2026
1.5.0 116 7/3/2026
1.4.0 126 6/27/2026