While OCRing a document it occasionally is necessary to skip a page while still including it in the set of document pages. This can be done by replacing an image with another blank image under the hood. The ImageSendOff event can be used to swap out the image with a blank. Below is an example of the event handler used to accomplish this:
void engine_ImageSendOff(object sender, OcrImagePreprocessingEventArgs e)
{
if(IsSkip(CurrentFrame))
{
e.ImageOut = new AtalaImage(10,10,PixelFormat.Pixel1bppIndexed, Color.White);
}
}
Private Sub engine_ImageSendOff(ByVal sender As Object, ByVal e As OcrImagePreprocessingEventArgs)
If IsSkip(CurrentFrame) Then
e.ImageOut = New AtalaImage(10, 10, PixelFormat.Pixel1bppIndexed, Color.White)
End If
End Sub
*IsSkip is a method that would need to be defined to return true when the CurrentFrame is to be skipped.