←Select platform

BeginParse Method

Summary

Begins parsing this document.

Syntax

C#
VB
C++
public void BeginParse(  
   object args 
) 
Public Sub BeginParse( _ 
   ByVal args As Object _ 
) 
public: 
void BeginParse(  
   Object^ args 
) 

Parameters

args
Either a Leadtools.Forms.Ocr.IOcrEngine object or null.

Remarks

You must call BeginParse before making any calls to ParsePageText in this document; otherwise, an exception will be thrown. When parsing is finished, you must call EndParse.

If this document is a raster document reader (the DocumentReader.ReaderType is DocumentReaderType.Raster), then parsing text will be performed using LEADTOOLS OCR. A valid Leadtools.Forms.Ocr.IOcrEngine object needs to be initialized, started and passed to the args parameter of BeginParse.

If this document is a PDF or XPS reader (the DocumentReader.ReaderType is DocumentReaderType.Pdf or DocumentReaderType.Xps), then OCR is not required to parse the document text and any object passed in the parameter args will not be used.

Example

For an example, refer to DocumentObjectManager.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Forms.DocumentReaders Assembly
Click or drag to resize