Nicomsoft OCR: Developer's Guide


Svr_SaveToMemory


Syntax

C++:int Svr_SaveToMemory(HSVR SvrObj, char* Buffer, int BufferSize)
C#:int Svr_SaveToMemory(int SvrObj, out System.Array Bytes)
Visual Basic:Function Svr_SaveToMemory(ByVal SvrObj As Integer, ByRef Bytes As System.Array) As Integer
Java:int Svr_SaveToMemory(HSVR SvrObj, byte[] Bits)
Delphi:function Svr_SaveToMemory(SvrObj:HSVR; Buffer:pointer; BufferSize:integer):integer


Description

Marks the document as finished, and saves the current document to a memory buffer. The Svr_AddPage function must be called at least once before calling this function.


Parameters

SvrObj [IN] – the Saver object.
Buffer [IN] – a pointer to the buffer that will contain the document after saving.
BufferSize [IN] – the buffer size in bytes. To get a buffer size sufficient for storing the document, specify 0.


Return value

Zero if success, otherwise an error code. If the "BufferSize" parameter is zero, the return value is the buffer size (in bytes) that is necessary to store the document.


Remarks

None.


Example

None.