GdPicture14 Namespace / GdPicturePDF Class / OcrPagesDone Event

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.

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
event GdPicturePDF.OcrPagesDoneEventHandler^ OcrPagesDone
The event is always triggered within the caller thread of the GdPicturePDF.OcrPages method.
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