| This section describes the sdk interfaces detailedly. |
| Function |
| 1. function---oakBegin() |
| |
This function create a instance and return the converter's handle. |
| |
If the function succeeds, it returns a converter's handle. If the function fail, it returns a error code, for more error codes, please click here. |
| |
This function close the instance and destroy the converter appointed by the handle. |
| |
void oakEnd(long nHandle); |
| 。 |
nHandle: The converter's handle, which created by function---oakBegin. |
| 3. function---oakExport() |
| |
This function start converting. |
| |
long oakExport(long nHandle); |
| 。 |
nHandle: The converter's handle, which created by function---oakBegin. |
| |
|
| |
It returns RTN_OK, the function succeeds, otherwise the function fails. For more error codes, please click here. |
| 4. function---oakSetOption() |
| |
This function is to set the converter's properties, which created by function---oakBegin. |
| |
long oakSetOption( long nHandle,
long nIndex,
long nValue1,
long nValue2,
char* pValue1,
char* pValue2); |
| 。 |
nHandle: The converter's handle, which created by function---oakBegin. |
| 。 |
nIndex: Property tag, refer to the section of definitions of oakSetOption properties. |
| 。 |
nValue1: An integer value of the property. |
| 。 |
nValue2: An integer value of the property. |
| 。 |
pValue1: A String value of the property. |
| 。 |
pValue:2 A String value of the property. |
| |
It returns RTN_OK, the function succeeds, otherwise the function fails. For more error codes, please click here. |
| 5. function---oakGetOption() -- none properties for the moment |
| |
This function is to get the converter's properties, which created by function---oakBegin. |
| |
long oakGetOption( long nHandle,
long nIndex,
long nValue1,
long nValue2,
char* pValue3,
char* pValue4); |
|
| This section describes the properties of the function oakSetOption detailedly. |
| 1. Property OAK_Set_Output |
| |
This property can be using to set the output file .
The paramater pValue3 is the output file.
Note:if setting more than once, comfirmed to the last set. |
| 2. Property OAK_Set_Input |
| |
This property can be using to set the input file .
The paramater pValue3 is the input file.
|
| 3. Property OAK_Set_PDFInfo |
| |
This property sets the PDF document information.
The paramater pValue3 is the information keywords.
The paramater pValue4 is the content of the document information. |
|
| 1. Definitions of oakSetOption's properties |
| |
(1) properties
| Name |
Value |
Type |
Description |
| OAK_Set_Output |
2101 |
string |
Destination file. |
| OAK_Set_Input |
2102 |
string |
Input file. |
| OAK_Set_PDFInfo |
2105 |
string |
Set PDF document information. |
Notice: For more detial properties, please click here. |
| 2. Return code's definitions |
| |
| Name |
Value |
Description |
| RTN_OK |
1 |
Successful operation. |
| RTN_ERROR1 |
0 |
convert fail. |
| RTN_ERROR2 |
-1 |
have not set the output file name. |
| RTN_ERROR3 |
-2 |
have not indicate the input file name. |
| RTN_ERROR4 |
-3 |
invalid instance object number. |
| |
|
|
|
|
|