Document Reading
Accurately extract text and data from invoices and reports with IronOCR and build features faster.
Document Reading
Read Scanned Documents
Accurately digitize physical documents and image-based PDFs into machine-readable text. Perfect for creating searchable archives, automating data entry from paper forms, and making scanned content accessible and indexable. Our engine excels at handling common scan imperfections.
Learn how to:Use Read Scanned Document in C#using IronOcr;
using System;
// Instantiate OCR engine
var ocr = new IronTesseract();
// Configure OCR engine
using var input = new OcrInput();
input.LoadImage("potter.tiff");
// Perform OCR
OcrResult result = ocr.ReadDocument(input);
Console.WriteLine(result.Text);Imports IronOcr
Imports System
' Instantiate OCR engine
Dim ocr As New IronTesseract()
' Configure OCR engine
Using input As New OcrInput()
input.LoadImage("potter.tiff")
' Perform OCR
Dim result As OcrResult = ocr.ReadDocument(input)
Console.WriteLine(result.Text)
End UsingRead Invoice Documents
Automate your accounts payable workflow by intelligently extracting structured data from invoices. Go beyond simple text extraction to capture key-value pairs like Invoice Number, Due Date, Total Amount, and Vendor Name, even across varied layouts and templates.
Learn how to:Read Complex Table in Documentusing IronOcr;
// Instantiate OCR engine
var ocr = new IronTesseract();
// Enable table detection
ocr.Configuration.ReadDataTables = true;
using var input = new OcrPdfInput("sample.pdf");
var result = ocr.Read(input);
// Retrieve the data
var table = result.Tables[0].DataTable;
// Print the retrieved item to the console
Console.WriteLine($"The first item in the table is: {result.Tables[0].DataTable.Rows[0][0]}");Imports IronOcr
' Instantiate OCR engine
Dim ocr As New IronTesseract()
' Enable table detection
ocr.Configuration.ReadDataTables = True
Using input As New OcrPdfInput("sample.pdf")
Dim result = ocr.Read(input)
' Retrieve the data
Dim table = result.Tables(0).DataTable
' Print the retrieved item to the console
Console.WriteLine($"The first item in the table is: {result.Tables(0).DataTable.Rows(0)(0)}")
End UsingRead Photo
Turn smartphone photos and camera images into usable text. Ideal for mobile applications that capture receipts for expense tracking, digitize whiteboard notes, extract information from product labels, or read text from street signs and posters.
Learn how to:Use Read Photo in C#using IronOcr;
var ocr = new IronTesseract();
using var inputPhoto = new OcrInput();
inputPhoto.LoadImageFrame("ocr.tiff", 0);
// Read photo
OcrPhotoResult result = ocr.ReadPhoto(inputPhoto);
// Extract the text in the first region
string textinregion = result.TextRegions[0].TextInRegion;
// Print the text in the first region
Console.WriteLine($"Full Scnned Photo Text: {textinregion}");Imports IronOcr
Dim ocr = New IronTesseract()
Using inputPhoto = New OcrInput()
inputPhoto.LoadImageFrame("ocr.tiff", 0)
' Read photo
Dim result As OcrPhotoResult = ocr.ReadPhoto(inputPhoto)
' Extract the text in the first region
Dim textinregion As String = result.TextRegions(0).TextInRegion
' Print the text in the first region
Console.WriteLine($"Full Scnned Photo Text: {textinregion}")
End UsingRead Screenshot
Instantly capture and process on-screen text from application windows, user interfaces, or web content. Seamlessly integrate with other applications by reading their UI elements.
Learn how to:Use Read Screenshot in C#using IronOcr;
using System;
using System.Linq;
// Instantiate OCR engine
var ocr = new IronTesseract();
using var inputScreenshot = new OcrInput();
inputScreenshot.LoadImage("screenshotOCR.png");
// Perform OCR
OcrPhotoResult result = ocr.ReadScreenShot(inputScreenshot);
// Output screenshot information
Console.WriteLine(result.Text);Imports IronOcr
Imports System
Imports System.Linq
' Instantiate OCR engine
Dim ocr = New IronTesseract()
Using inputScreenshot = New OcrInput()
inputScreenshot.LoadImage("screenshotOCR.png")
' Perform OCR
Dim result As OcrPhotoResult = ocr.ReadScreenShot(inputScreenshot)
' Output screenshot information
Console.WriteLine(result.Text)
End UsingReady to Get Started?
Nuget Downloads 6,236,385|Version:2026.9just released