Cuminas DjVu SDK for .NET Framework
PerformOCR Method (Document)



Performs OCR on all the pages in the document.
Overload List
OverloadDescription
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.  
Example
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]);
                }
            }
        }
    }
}
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

Document Class
Document Members

Send Feedback