GdPicture.NET.14.API
GdPicture14 Namespace / GdPicturePDF Class / BeforePageOcr Event
Example





BeforePageOcr Event (GdPicturePDF)
This event is raised just before the specified page is going to be processed using the GdPicturePDF.OcrPage or the GdPicturePDF.OcrPages methods.

Please check the corresponded GdPicturePDF.BeforePageOcrEventHandler for given parameters.

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