GdPicture14 Namespace / GdPicturePDF Class / OcrPagesProgress Event

In This Topic
OcrPagesProgress Event (GdPicturePDF)
In This Topic
This event is raised immediately after the specified page has been processed using the GdPicturePDF.OcrPage or the GdPicturePDF.OcrPages methods.

Please check the corresponded GdPicturePDF.OcrPagesProgressEventHandler for given parameters.

Public Event OcrPagesProgress As GdPicturePDF.OcrPagesProgressEventHandler
public event GdPicturePDF.OcrPagesProgressEventHandler OcrPagesProgress
public event OcrPagesProgress: GdPicturePDF.OcrPagesProgressEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdPicturePDF.OcrPagesProgressEventHandler* OcrPagesProgress
event GdPicturePDF.OcrPagesProgressEventHandler^ OcrPagesProgress
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.OcrPagesProgress, AddressOf OcrPagesProgress
'Define the event.
Sub OcrPagesProgress(ByVal Status As GdPictureStatus, ByVal PageNo As Integer, ByVal Processed As Integer, ByVal Count As Integer, ByRef Cancel As Boolean) Handles gdpicturePDF.OcrPagesProgress
    'Do your stuff here.
End Sub
//Add the event.
GdPicturePDF gdpicturePDF = new GdPicturePDF();
gdpicturePDF.OcrPagesProgress += OcrPagesProgress;
//Define the event.
void OcrPagesProgress(GdPictureStatus status, int PageNo, int Processed, int Count, ref bool Cancel)
    //Do your stuff here.
See Also