C# 的 PDF OCR
- 扩展 PDF 的能力 C# 的 Tesseract
- 在 C# 中读取文本和条形码 (OCR) PDFs
- 支持 C# 和 VB.NET
或者直接下载 DLL 这里
using OCR 将图像转换为文本
查看所有%s代码示例using IronOcr;
var ocr = new IronTesseract();
using var input = new OcrInput();
input.LoadImage("attachment.png");
input.LoadPdf("report.pdf");
OcrResult result = ocr.Read(input);
string text = result.Text;
Dim ocr = New IronTesseract()
Using input = New OcrInput()
input.LoadImage("attachment.png")
input.LoadPdf("report.pdf")
Dim result As OcrResult = ocr.Read(input)
Dim text As String = result.Text
End Using