IronOCR 的金融語言包支援
Curtis Chau
已更新: 2026年7月6日
我可以使用金融語言套件來輔助 IronOCR 讀取資料表嗎?
是的,使用財務語言包並保存為可搜尋的 PDF 文件是實現此目的的非常有效的方法。
IronOCR 金融語言包
範例程式碼
// Import the IronOcr library
using IronOcr;
class Program
{
static void Main()
{
// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial;
// Using statement to ensure proper disposal of resources
using (var input = new OcrInput())
{
// Add a PDF file to be processed by OCR
input.LoadPdf("TestPdf_new.pdf");
// Optional: Add image filters if needed to improve OCR
// input.Deskew(); // Corrects rotation and skewing
// input.DeNoise(); // Reduces noise and improves readability
// Perform OCR on the input PDF
var Result = Ocr.Read(input);
// Extract the recognized text
string TestResult = Result.Text;
// Save the result as a searchable PDF using the Financial language pack
Result.SaveAsSearchablePdf("Output_using_Financial_language_pack.pdf");
}
}
}Imports IronOcr
Class Program
Shared Sub Main()
' Initialize a new instance of IronTesseract
Dim Ocr As New IronTesseract()
' Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial
' Using statement to ensure proper disposal of resources
Using input As New OcrInput()
' Add a PDF file to be processed by OCR
input.LoadPdf("TestPdf_new.pdf")
' Optional: Add image filters if needed to improve OCR
' input.Deskew() ' Corrects rotation and skewing
' input.DeNoise() ' Reduces noise and improves readability
' Perform OCR on the input PDF
Dim Result = Ocr.Read(input)
' Extract the recognized text
Dim TestResult As String = Result.Text
' Save the result as a searchable PDF using the Financial language pack
Result.SaveAsSearchablePdf("Output_using_Financial_language_pack.pdf")
End Using
End Sub
End ClassImports IronOcr
Class Program
Shared Sub Main()
' Initialize a new instance of IronTesseract
Dim Ocr As New IronTesseract()
' Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial
' Using statement to ensure proper disposal of resources
Using input As New OcrInput()
' Add a PDF file to be processed by OCR
input.LoadPdf("TestPdf_new.pdf")
' Optional: Add image filters if needed to improve OCR
' input.Deskew() ' Corrects rotation and skewing
' input.DeNoise() ' Reduces noise and improves readability
' Perform OCR on the input PDF
Dim Result = Ocr.Read(input)
' Extract the recognized text
Dim TestResult As String = Result.Text
' Save the result as a searchable PDF using the Financial language pack
Result.SaveAsSearchablePdf("Output_using_Financial_language_pack.pdf")
End Using
End Sub
End ClassCurtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。