GdPicture.NET.14.API
GdPicture14 Namespace / GdPicturePDF Class / OcrPagesDone Event
Example





In This Topic
OcrPagesDone Event (GdPicturePDF)
In This Topic
This event is raised after the whole OCR process, invoked by the GdPicturePDF.OcrPage or the GdPicturePDF.OcrPages methods, has been terminated.

Please check the corresponded GdPicturePDF.OcrPagesDoneEventHandler for given parameters.

Syntax
'Declaration
 
Public Event OcrPagesDone As GdPicturePDF.OcrPagesDoneEventHandler
public event GdPicturePDF.OcrPagesDoneEventHandler OcrPagesDone
public event OcrPagesDone: GdPicturePDF.OcrPagesDoneEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdPicturePDF.OcrPagesDoneEventHandler* OcrPagesDone
public:
event GdPicturePDF.OcrPagesDoneEventHandler^ OcrPagesDone
Remarks
The event is always triggered within the caller thread of the GdPicturePDF.OcrPages method.
Example
The PDF to PDF-OCR sample included in the PDF examples section within the GdPicture.NET Reference Guide demonstrates the usage of this event.
'Add the event.
WithEvents gdpicturePDF As GdPicture14.GdPicturePDF
gdpicturePDF = New GdPicturePDF()
AddHandler gdpicturePDF.OcrPagesDone, AddressOf OcrPagesDone
            
'Define the event.
Sub OcrPagesDone(status As GdPictureStatus) Handles gdpicturePDF.OcrPagesDone
    'Do your stuff here.
End Sub
//Add the event.
GdPicturePDF gdpicturePDF = new GdPicturePDF();
gdpicturePDF.OcrPagesDone += OcrPagesDone;
            
//Define the event.
void OcrPagesDone(GdPictureStatus status)
{
    //Do your stuff here.
}
See Also