GdPicture.NET.14
GdPicture14 Namespace / GdPicturePDF Class / OcrPagesProgress Event
Example





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.

Syntax
'Declaration
 
Public Event OcrPagesProgress As GdPicturePDF.OcrPagesProgressEventHandler
 
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.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
See Also