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
<PackageReference Include="RecursiveAI.OnePdf.Html.Ocr" Version="1.0.0" />
<PackageVersion Include="RecursiveAI.OnePdf.Html.Ocr" Version="1.0.0" />
<PackageReference Include="RecursiveAI.OnePdf.Html.Ocr" />
paket add RecursiveAI.OnePdf.Html.Ocr --version 1.0.0
#r "nuget: RecursiveAI.OnePdf.Html.Ocr, 1.0.0"
#:package RecursiveAI.OnePdf.Html.Ocr@1.0.0
#addin nuget:?package=RecursiveAI.OnePdf.Html.Ocr&version=1.0.0
#tool nuget:?package=RecursiveAI.OnePdf.Html.Ocr&version=1.0.0
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.
- Guide: https://github.com/recursive-ai-oss/onepdf-html-csharp/blob/main/docs/pdf-to-html.md#text-sources-and-ocr
- Source and documentation: https://github.com/recursive-ai-oss/onepdf-html-csharp
- Licensed under MIT or Apache-2.0. Third-party notices are in
THIRD-PARTY-NOTICES.mdin this package.
| Product | Versions 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. |
-
net10.0
- RecursiveAI.OneFont (>= 1.6.0)
- RecursiveAI.OneHtml (>= 1.7.0)
- RecursiveAI.OneImage (>= 1.11.3)
- RecursiveAI.OneImage.Pdf (>= 1.11.3)
- RecursiveAI.OneOcr (>= 1.2.0)
- RecursiveAI.OnePdf (>= 1.26.0)
- RecursiveAI.OnePdf.Fonts (>= 1.26.0)
- RecursiveAI.OnePdf.Html (>= 1.0.0)
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 |