Skip to content

Commit 3c8640c

Browse files
committed
Added proper input document and tessdata
1 parent d120196 commit 3c8640c

5 files changed

Lines changed: 1 addition & 1 deletion

File tree

OCR/.NET/Perform-OCR-on-PDF-with-multiple-languages/Perform-OCR-on-PDF-with-multiple-languages/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//Assign a Unicode font to retain multilingual characters in the OCR output PDF.
1111
processor.UnicodeFont = new PdfTrueTypeFont(Path.GetFullPath(@"Data/ARIALUNI.ttf"), 8);
1212
//Specify the languages to be recognized during OCR processing.
13-
processor.Settings.Language = "eng+deu+ara+ell+fra"; // English, German, Arabic, Greek, French
13+
processor.Settings.Language = "eng+spa+deu+fra+chi_sim+ara";
1414
//Set the directory containing Tesseract language data files.
1515
processor.TessDataPath = Path.GetFullPath(@"Tessdata");
1616
//Run OCR on the PDF document and make its content searchable.

0 commit comments

Comments
 (0)