B、函数功能请求:公司网站 http://zorrosoft.com/
1) 显示关于对话框
请求:{"req":"AIP_AboutBox","rid":101,"para":{}}
返回:{"ret":0,"rid":101,"data":{}}
2) 添加骑缝章和普通印章接口(必须打开文件且用户已登录)
请求:{"req":"AIP_AddQiFengSeal","rid":102,"para":{"From":"","Pages":"","OriSealName":"","SealName":""}}
返回:{"ret":0,"rid":102,"data":{"Ret":"1"}}
Ret 1成功,0失败
3) 如当前是通过LoadOriginalFile打开的原始文件,通过此接口可以接受文件的全部修订
请求:{"req":"AIP_AcceptAllRevisions","rid":103,"para":{}}
返回:{"ret":0,"rid":103,"data":{"Ret":"1"}}
Ret >0 成功,<=0失败
4) 添加当前文件的属性和值
请求:{"req":"AIP_AddDocProperty","rid":104,"para":{"Name":"","Value":""}}
返回:{"ret":0,"rid":104,"data":{"Ret":"1"}}
Ret !=0 成功,=0失败
5) 在AIP_BeforeConvert后,默认打印机恢复为原打印机,并读取设置
请求:{"req":"AIP_AfterConvert","rid":105,"para":{}}
返回:{"ret":0,"rid":105,"data":{"Ret":"1"}}
Ret >0 成功,<=0失败
6) 将控件虚拟打印机设置为系统默认打印机,并保存原打印机设置。 在AIP_AfterConvert 后恢复
请求:{"req":"AIP_BeforeConvert","rid":106,"para":{}}
返回:{"ret":0,"rid":106,"data":{"Ret":"1"}}
Ret >0 成功,<=0失败
7) 将控件虚拟打印机设置为系统默认打印机,并保存原打印机设置。 在AIP_AfterConvert后恢复
请求:{"req":"AIP_BeforeConvertEx","rid":107,"para":{"PaperWidth":"","PaperHeight":""}}
返回:{"ret":0,"rid":107,"data":{"Ret":"1"}}
Ret >0 成功,<=0失败
8) 判断操作是否可以恢复
请求:{"req":"AIP_CanRedo","rid":108,"para":{}}
返回:{"ret":0,"rid":108,"data":{"Ret":"1"}}
Ret 1 可以恢复,0不可恢复
9) 判断操作是否可以撤销
请求:{"req":"AIP_CanUndo","rid":109,"para":{}}
返回:{"ret":0,"rid":109,"data":{"Ret":"1"}}
Ret 1 可以撤销,0不可撤销
10) 修改当前用户的登陆密码
请求:{"req":"AIP_ChangeCurrUserPwd","rid":110,"para":{"OldPwd":"","NewPwd":""}}
返回:{"ret":0,"rid":110,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
11) 关闭当前文档
请求:{"req":"AIP_CloseDoc","rid":111,"para":{"ReqSaved":"0"}}
返回:{"ret":0,"rid":111,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
12) 把当前通过AIP_LoadOriginalFile打开的原始文件直接转化成AIP文件
请求:{"req":"AIP_ConvertToAip","rid":112,"para":{"AddOri":"","Normal":""}}
返回:{"ret":0,"rid":112,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
13) 将高度由原单位换算为新的单位
请求:{"req":"AIP_ConvertXYModeH","rid":113,"para":{"PageIndex":"","W":"","SXYMode":"","DXYMode":""}}
返回:{"ret":0,"rid":113,"data":{"Ret":""}}
Ret 成功:换算为新单位后的高度值
14) 将宽度由原单位换算为新的单位
请求:{"req":"AIP_ConvertXYModeW","rid":114,"para":{"PageIndex":"","W":"","SXYMode":"","DXYMode":""}}
返回:{"ret":0,"rid":114,"data":{"Ret":""}}
Ret 成功:换算为新单位后的宽度值
15) 拷贝本地文件
FromFile、ToFile需先进行UrlEncode编辑
请求:{"req":"AIP_CopyLocalFile","rid":115,"para":{"FromFile":"","ToFile":""}}
返回:{"ret":0,"rid":115,"data":{"Ret":"1"}}
Ret 1 成功,0失败
16) CopySelectText
请求:{"req":"AIP_CopySelectText","rid":116,"para":{}}
返回:{"ret":0,"rid":116,"data":{}}
17) 创建文件夹
Folder需先进行UrlEncode编辑
请求:{"req":"AIP_CreateFolder","rid":117,"para":{"Folder":""}}
返回:{"ret":0,"rid":117,"data":{"Ret":"1"}}
Ret 0 成功,<>0失败
18) 解密文件
InFile、OutFile需先进行UrlEncode编辑
请求:{"req":"AIP_DecFile","rid":110,"para":{"InFile":"","OutFile":"","Pwd":""}}
返回:{"ret":0,"rid":110,"data":{"Ret":"1"}}
Ret 0 成功,<>0失败
19) 删除文件属性
请求:{"req":"AIP_DelDocProperty","rid":119,"para":{"Name":""}}
返回:{"ret":0,"rid":119,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
20) 删除文件夹
Folder需先进行UrlEncode编辑
请求:{"req":"AIP_DeleteFolder","rid":120,"para":{"Folder":""}}
返回:{"ret":0,"rid":120,"data":{"Ret":"1"}}
Ret 0 成功,<>0失败
21) 删除本地文件
FileName需先进行UrlEncode编辑
请求:{"req":"AIP_DeleteLocalFile","rid":121,"para":{"FileName":""}}
返回:{"ret":0,"rid":121,"data":{"Ret":"1"}}
Ret 0 成功,<>0失败
22) 删除指定节点
请求:{"req":"AIP_DeleteNote","rid":122,"para":{"NoteName":""}}
返回:{"ret":0,"rid":122,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
23) 删除指定页面
请求:{"req":"AIP_DeletePage","rid":123,"para":{"Page":"0"}}
返回:{"ret":0,"rid":123,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
24) 加密文件
InFile、OutFile、PwdFile需先进行UrlEncode编辑
请求:{"req":"AIP_EncFile","rid":124,"para":{"InFile":"","OutFile":"","PwdFile":""}}
返回:{"ret":0,"rid":124,"data":{"Ret":""}}
Ret "o-加密密码"成功,"x-错误信息" 失败
25) 执行shell命令
Exe、Paramer需先进行UrlEncode编辑
请求:{"req":"AIP_ExecuteCmd","rid":125,"para":{"Exe":"","Flag":"","Paramer":""}}
返回:{"ret":0,"rid":125,"data":{"Ret":"1"}}
Ret 0 成功,<>0失败
26) 导出文档中所有区域的字符串数据
OpenFileName、SaveFileName需先进行UrlEncode编辑
请求:{"req":"AIP_ExportEditNodeValue","rid":126,"para":{"OpenFileName":"","SaveFileName":"","WithHeader":""}}
返回:{"ret":0,"rid":126,"data":{"Ret":"1"}}
Ret 0 成功,<>0失败
27) FindText
请求:{"req":"AIP_FindText","rid":127,"para":{"Text":"","Case ":"","PageS":"","PosXS":"","PosYS":"","PageE":"","PosXE":"","PosYE":"","SearchIndex":""}}
返回:{"ret":0,"rid":127,"data":{"Ret":""}}
Ret 成功:S页索引,页坐标X,页坐标Y 成功,失败:空
28) 连接FTP服务器
URL需先进行UrlEncode编辑
请求:{"req":"AIP_FtpConnect","rid":128,"para":{"URL":"","Port":"","User":"","Pwd":""}}
返回:{"ret":0,"rid":128,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
29) 断开FTP服务器连接
请求:{"req":"AIP_FtpDisConnect","rid":129,"para":{}}
返回:{"ret":0,"rid":129,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
30) 通过FTP下载服务器文件
RemoteFile、LocalFile需先进行UrlEncode编辑
请求:{"req":"AIP_FtpGetFile","rid":130,"para":{"RemoteFile":"","LocalFile":""}}
返回:{"ret":0,"rid":130,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
31) 通过FTP上传本地文件
RemoteFile、LocalFile需先进行UrlEncode编辑
请求:{"req":"AIP_FtpPutFile","rid":131,"para":{"RemoteFile":"","LocalFile":"","OverWrite":""}}
返回:{"ret":0,"rid":131,"data":{"Ret":"1"}}
Ret <>0 成功,0失败
32) 获取word文档中的bookmark的位置
请求:{"req":"AIP_GetBMPos","rid":132,"para":{"BMName":"","PosType":""}}
返回:{"ret":0,"rid":132,"data":{"Ret":"1"}}
Ret >=0 成功,<0失败
33) 获取当前文件的Base64编码的字符串,与"AIP_LoadFileBase64对应
请求:{"req":"AIP_GetCurrFileBase64","rid":133,"para":{}}
返回:{"ret":0,"rid":133,"data":{"Ret":""}}
Ret 成功:Base64编码的字符串,失败:空
34) 取得当前文件大小,单位字节
请求:{"req":"AIP_GetCurrFileSize","rid":134,"para":{}}
返回:{"ret":0,"rid":134,"data":{"Ret":""}}
Ret >0 成功,0失败
35) 获得文档窗口的指定位置在页面上的坐标
请求:{"req":"AIP_GetCurrPagePos","rid":135,"para":{"PagePosType":""}}
返回:{"ret":0,"rid":135,"data":{"Ret":""}}
Ret 成功:页索引,页面坐标x,页面坐标Y 失败:空
36) 获得当前服务序列号对应的服务名。每一服务器用户分配32位唯一表示符号
请求:{"req":"AIP_GetCurrServer","rid":136,"para":{"ServerID":"1"}}
返回:{"ret":0,"rid":136,"data":{"Ret":"","ServerID":"1"}}
Ret 成功:当前服务器的详细名称,失败:空
37) 获取当前用户的权限(请参阅方法Login)
请求:{"req":"AIP_GetCurrUserAccess","rid":137,"para":{}}
返回:{"ret":0,"rid":137,"data":{"Ret