Nicomsoft OCR: Developer's Guide


Svr_SetDocumentInfo


Syntax

C++:int Svr_SetDocumentInfo(HSVR SvrObj, int InfoID, UNICODECHAR* InfoStr)
C#:int Svr_SetDocumentInfo(int SvrObj, int InfoID, string InfoStr)
Visual Basic:Function Svr_SetDocumentInfo(ByVal SvrObj As Integer, ByVal InfoID As Integer, ByVal InfoStr As String) As Integer
Java:int Svr_SetDocumentInfo(HSVR SvrObj, int InfoID, String InfoStr)
Delphi:function Svr_SetDocumentInfo(SvrObj:HSVR; InfoID:integer; InfoStr:PWCHAR):integer


Description

Sets the specified PDF file information field (author, creator, keywords, and so on).


Parameters

SvrObj [IN] – the Saver object.
InfoID [IN] – the field ID to set. See the INFO_PDF_XXXXX constants for possible values.
InfoStr [IN] – the new field value.


Return value

Zero if success, otherwise an error code.


Remarks

You can use this function for the PDF, PDF/A, or XML formats only. For the XML format, you can also specify any custom InfoID values to save additional information to the XML document.


Example

See the sample code for the Svr_Create function.