| 1. ConvertAgent COM-Interface &
C++ Library Interface |
| Methods and Properties |
Description |
| |
|
| ConvertAgent |
Construction (Only C++) |
| ConvertAgent |
Destruction (Only C++) |
| InitAgent |
初始化 ConvertAgent 环境 , 调用 ConverDoc前必须调用此函数。 |
ConvertDoc
|
文档转换函数 ,转换时须使用绝对路径
Example: ConvertDoc(“c:\\test.doc” , “c:\\test.tif”); |
| CleanAgent |
清除 ConvertAgent 环境释放内存资源, 必须和 InitAgent对称。 |
| CreateCover |
通过指定的模板和参数建立封面。 |
| GetTiffPageCount |
获取TIFF页面数量。 |
| TiffMerge |
合并TIFF文件 |
| TiffMergeCover |
合并TIFF 封面。 |
| Text2TiffProperty |
设置 Text文件转 TIFF的参数。 |
|
| Include 文件参见: FaxServerPrinter\ include\
ConvertAgent.h |
| VC++Sample参见: FaxServerPrinter\SDK Examples\VC++\ConvertAgentDemo |
| VB COM Sample参见: FaxServerPrinter\ VB.NET(COM)\ConverAgentDemo |
| C# COM Sample参见: FaxServerPrinter\ C#.NET(COM) \ConverAgentDemo |
| NO |
Value |
Description |
| 0 |
SM_SUCCESS |
|
| 1 |
SM_FAIL |
|
| 2 |
SM_OUTOF_MEMORY |
|
| 3 |
SM_PRINT_TIMEOUT |
|
| 4 |
SM_SYSTEM_ERROR |
|
| 5 |
SM_LINCESE_ERROR |
认证错误,测试版本中连续调用多次 ConvertDoc 可出现此类型错误 |
| 6 |
SM_PRODUCT_NOT_INSTALL |
转换文件对应的软件未安装
如:转 DOC 时需要安装 Microsoft Office 2003
以上版本
转 PDF 时需要安装 Adobe Acrobat (7.0)
|
| 7 |
SM_DISPATCH_NOT_FOUND |
|
| 8 |
SM_DISPATCH_CALL_FAIL |
|
| 9 |
SM_FOPEN_ERROR |
文件打开错误,一般有两个原因导致
1:文件路径错误.
2:文件有加密保护.
(如果源文件是Doc类型检查是否安装 Microsoft Office 2003以上版本)
|
| 10 |
SM_UNKNOWN_ERROR |
未知错误 |
| 11 |
SM_NOT_INIT |
未初始化错误 |
| 12 |
SM_PRINT_NOT_INSTALL |
指定的打印机未安装 |
| 13 |
SM_FWRITE_ERROR |
写文件错位,检查磁盘容量 |
| 14 |
SM_UNSUPPORTED_FILE_TYPE |
不支持该文件类型 |
| 15 |
SM_EXPIRE_LINCESE |
软件已过试用期 |
|
|