<< Click to Display Table of Contents >> Navigation: OCR Module > Low-Level Functions > OCRp_Field |
OCRp_Field performs OCR on the specified field of the input document, then returns the results in a structure that can be queried for text layout details. Please note that all elements are case-sensitive:
HRESULT OCRp_Field(
PXODocument Doc,
PXO_InputField InField,
PXO_Options* pOptions,
PXO_Page *pPageResults,
OCR_RasterPageSettings *pRasterSettings,
);
Doc
Specifies the PXODocument that OCR_Init created and OCR_LoadW or OCR_LoadA loaded.
InField
This parameter is an input PXO_InputField structure.
pOptions
This parameter is an input pointer to a PXO_Options structure that contains the required parameters for OCR.
pPageresults
This parameter is a pointer to the PXO_Page variable that receives the results. OCRp_FreePage must be used to free this structure when the process is complete.
pRasterSettings
This parameter is a pointer to the OCR_RasterPageSettings variable that receives the rasterization settings for the page image, which is required to convert coordinates from page formatting information to PDF coordinates.
If the function succeeds then the return value is DS_OK.
If the function fails then the return value is an error code.