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





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

Please check the corresponded GdPicturePDF.OcrPagesProgressEventHandler for given parameters.

Syntax
'Declaration
 
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
public:
event GdPicturePDF.OcrPagesProgressEventHandler^ OcrPagesProgress
Remarks
The event is always triggered within the caller thread of the OcrPages(String,Int32,String,String,String,Single) 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
//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