Leadtools.Forms.DocumentReaders Namespace > DocumentObjectManager Class : EndParse Method |
public void EndParse()
'Declaration Public Sub EndParse()
'Usage Dim instance As DocumentObjectManager instance.EndParse()
public: void EndParse();
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 (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 the BeginParse method.
If this document is a PDF or XPS reader (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.
For an example, refer to DocumentObjectManager.