OCRp_Page

<< Click to Display Table of Contents >>

Navigation:  OCR Module > Low-Level Functions >

OCRp_Page


 

PRO SDK Icon OCRp_Page

 


 

OCRp_Page performs OCR on the specified page 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_Page(

PXODocument Doc,

ULONG nPage,

PXO_Options* pOptions,

PXO_Page *pPageResults,

OCR_RasterPageSettings *pRasterSettings,

);

 

Parameters

 

Doc

Specifies the PXODocument that OCR_Init created and OCR_LoadW or OCR_LoadA loaded.

 

nPage

The zero-indexed input PDF page number.

 

pOptions

This parameter is an input pointer to the 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.

 

Return Values

 

If the function succeeds then the return value is DS_OK.

 

If the function fails then the return value is an error code.