| DjVu Namespace > Document Class : PerformOCR Method |
| Overload | Description |
|---|---|
| PerformOCR(Boolean) | Performs OCR on all the pages in the document. |
| PerformOCR(OcrSettings,Boolean) | Performs OCR on all the pages in the document. |
| PerformOCR(OcrSettings,Boolean,Boolean) | Performs OCR on all the pages in the document. |
| DjVu Encode and OCR |
Copy Code |
|---|---|
using System; using System.Drawing; using System.Collections; using DjVu; using Ocr; namespace EncodeTest { class EncodeTest { static void Main(string[] args) { GlobalOcrSettings.OcrSettings.Language = Ocr.Language.Japanese; EncoderParams encParam = new EncoderParams("scan300"); using (Encoder enc = new Encoder(encParam)) { enc.AddPages(args[0]); using (Document doc = enc.GetEncodedDocument()) { doc.PerformOCR(false); doc.SaveAs(args[1]); } } } } } | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family