Nicomsoft OCR: Developer's Guide


Svr_AddPage


Syntax

C++:int Svr_AddPage(HSVR SvrObj, HIMG ImgObj, int Flags)
C#:int Svr_AddPage(int SvrObj, int ImgObj, int Flags)
Visual Basic:Function Svr_AddPage(ByVal SvrObj As Integer, ByVal ImgObj As Integer, ByVal Flags As Integer) As Integer
Java:int Svr_AddPage(HSVR SvrObj, HIMG ImgObj, int Flags)
Delphi:function Svr_AddPage(SvrObj:HSVR; ImgObj:HIMG; Flags:integer):integer


Description

Appends a new page to the current document and fills it with OCR results taken from the specified Image object. At least the OCRSTEP_OCR step for the specified Image object must be executed before calling this function. Also note that this function cannot be called after the Svr_SaveToFile function.


Parameters

SvrObj [IN] – the Saver object.
ImgObj [IN] – the Image object that was already OCR’ed and contains OCR results.
Flags [IN] – the formatting flags. See the FMT_XXXXX constants for possible values. Note: The FMT_EDITCOPY flag is not supported for the PDF format.


Return value

Zero if success, otherwise an error code.


Remarks

None.


Example

See the sample code for the Svr_Create function.