OCRp_RasterRectToPDF

<< Click to Display Table of Contents >>

Navigation:  OCR Module > Low-Level Functions >

OCRp_RasterRectToPDF


 

PRO SDK Icon OCRp_RasterRectToPDF

 


 

OCRp_RasterRectToPDF returns the PDF coordinates of the input raster page rectangle. Please note that all elements are case-sensitive:

 

HRESULT OCRp_RasterRectToPDF(

Rect SourceRect,

OCR_RasterPageSettings RasterSettings,

double *left,

double *bottom,

double *right,

double *top,

);

 

Parameters

 

SourceRect

Specifies input RECT coordinates in rasterized, image page coordinates (0,0 is the upper left corner and pixels are the units of measurement).

 

RasterSettings

The raster settings that OCRp_Page or OCRp_Field returned, which will be converted to PDF coordinates.

 

left,

A pointer to double variable that will receive the equivalent rectangle in PDF coordinates.

 

bottom,

A pointer to double variable that will receive the equivalent rectangle in PDF coordinates.

 

right,

A pointer to double variable that will receive the equivalent rectangle in PDF coordinates.

 

top

A pointer to double variable that will receive the equivalent rectangle in PDF coordinates.

 

See Regional OCR Comments for further information.

 

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.