OcrPagesProgress Event (GdPicturePDF)
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.
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.
}