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.
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
//Add the event.
GdPicturePDF gdpicturePDF = new GdPicturePDF();
gdpicturePDF.BeforePageOcr += BeforePageOcr;
//Define the event.
void BeforePageOcr(int PageNo, ref bool Cancel)
{
//Do your stuff here.
}