The printer driver transfers the OCR data through this message if the “Generate OCR output in memory” option is enabled. The OCR data is generated for each printed page separately.
The OCRData event is available since Printer Version 14.98.
Received Parameters
PrinterName: The name of the Printer that sent the event.
JobID The Windows Job ID of the print job.
DocumentName The name of the printed document. (This parameter is provided by the printing application and it usually contains the Title of the printed document. It is not output filename of the printer driver and not the filename of the printed document.)
OCRData: The OCR data generated by the driver.
OCRDataType: The type of the OCR data. It can be one of the following values:
1: OCR data for the currently printing page in Plain Text format
2: Header of the hOCR data
3: hOCR data for the currently printing page
4: Ending part of the hOCR data