|
Set the Asynchronous Mode or Blocking Mode for OCR2SearchableMultipagePDF and OCRStartScan method.By default is Asynchronous Mode. With Asynchronous Mode, when you call OCRStartScan , the recognition process completed, it will fire OCRRecognized event. When you call OCR2SearchableMultipagePDF , the recognition processing, it will fire OCRPDFA event.
Public Function OCRScanTextAsync ( _ ByVal bAsync As Bool )
|
Parameter
bAsync true - Asynchronous Mode, false - Blocking Mode
No Return Value Example
|
Visual Basic Syntax ImageViewer1.OCRRecognizeMode=0 ImageViewer1.OCRScanTextAsync true ImageViewer1.OCRStartScan(0, "dictfiles")
'after OCRRecognized event fired bresult= ImageViewer1.OCRSaveRecognizedText("c:\text.txt")
|
|
|
|