RecursiveAI.OnePdf.Html.Ocr 1.0.0

Prefix Reserved
dotnet add package RecursiveAI.OnePdf.Html.Ocr --version 1.0.0
                    
NuGet\Install-Package RecursiveAI.OnePdf.Html.Ocr -Version 1.0.0
                    
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="RecursiveAI.OnePdf.Html.Ocr" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecursiveAI.OnePdf.Html.Ocr" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OnePdf.Html.Ocr" />
                    
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 RecursiveAI.OnePdf.Html.Ocr --version 1.0.0
                    
#r "nuget: RecursiveAI.OnePdf.Html.Ocr, 1.0.0"
                    
#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 RecursiveAI.OnePdf.Html.Ocr@1.0.0
                    
#: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=RecursiveAI.OnePdf.Html.Ocr&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OnePdf.Html.Ocr&version=1.0.0
                    
Install as a Cake Tool

RecursiveAI.OnePdf.Html.Ocr

A text source for RecursiveAI.OnePdf.Html that recognises text on scanned PDF pages and on pages whose text layer is missing or broken, so both the semantic and the fixed-layout output have real, selectable text. Recognition is done by RecursiveAI.OneOcr; this package brings in its models, so the core package does not carry them.

using OnePdf.Html;
using OnePdf.Html.Ocr;

using var ocr = new OcrTextSource(new OcrTextSourceOptions { Languages = ["en"] });   // or none: the engine decides per line
string html = PdfHtml.Convert("scan.pdf", new PdfHtmlOptions { TextSource = ocr });

OcrMode.Auto (the default) recognises a page only where its own text is missing (a scan), garbled (wrong character maps) or does not lie on the page's ink; a page with usable text is never recognised. Always and Never override that. This package brings the models for Latin, Greek and Cyrillic script. For Chinese, Japanese, Korean, Arabic, Persian, Urdu, Hebrew and the Indic languages, add RecursiveAI.OneOcr.Models.Cjk, .Arabic, .Hebrew or .Indic to your application: each puts its model in oneocr-models/ beside it and the default engine uses it. OcrTextSourceOptions.Languages (BCP 47 tags) restricts recognition to the scripts named; a language whose model is not installed leaves its lines unread with an ocr-language-unsupported warning. One source is safe to share between threads, loads its models once, and bounds how many pages are recognised at once.

Words, lines and blocks come back in reading order with boxes, line direction, header and footer roles, block kinds and tables with their grid. Every recognised page carries an ocr-page diagnostic.

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.0.0 0 12/4/2026