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





PageBitmapOcrReady Event (GdPicturePDF)
This event is raised when a specified image is ready to be sent to the OCR engine during the process invoked by the GdPicturePDF.OcrPage or the GdPicturePDF.OcrPages methods. It is fired after the GdPicturePDF.BeforePageOcr event. This event is particularly useful to apply your specific custom pre-processing to the image before recognizing it.

Please check the corresponded GdPicturePDF.PageBitmapOcrReadyEventHandler for given parameters.

Syntax
'Declaration
 
Public Event PageBitmapOcrReady As GdPicturePDF.PageBitmapOcrReadyEventHandler
 
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.PageBitmapOcrReady, AddressOf PageBitmapOcrReady
            
'Define the event.
Sub PageBitmapOcrReady(ByVal PageNo As Integer, ByVal ImageID As Integer) Handles gdpicturePDF.PageBitmapOcrReady
    'Do your stuff here.
End Sub
See Also