O2OA使用扩展程序实现附件水印,加密,文档格式转换图片,PDF等功能.
1.对附件office,pdf等版式文件添加水印,
2.对附件进行商用加密.
3.对附件进行转换,如office->image,office->word.
4.对附件进行转储到第三方系统,如审核,归档等场景.
实现时序(以文件上传为例):
1.工作附件上传时:workAttachmentUploadEvent
2.工作附件下载时:workAttachmentDownloadEvent
3.已完成工作附件上传时:workCompletedAttachmentUploadEvent
4.工作附件下载时:workCompletedAttachmentDownloadEvent
5.工作版式公文转换成word时:workDocToWordEvents
6.已完成工作版式公文转换成word时:workCompletedDocToWordEvents
workAttachmentDownloadEvent 请求对象:json { "person"":"张三@zhangsan@P", "attachment":"xxxxx" } workAttachmentDownloadEvent 请求对象:json { "person"":"张三@zhangsan@P", "attachment":"xxxxx" } workDocToWord 请求对象:json { "person"":"张三@zhangsan@P", "content":"html" } workCompletedDocToWord 请求对象:json { "person"":"张三@zhangsan@P", "content":"html" } workAttachmentUploadEvent 请求对象: multipart workCompletedAttachmentUploadEvent 请求对象: multipart
"extensionEvents": { "workAttachmentDownloadEvents":[ { "enable": true, "processes": [], "custom": "x_xxx(配置上自定义工程包名)", "url":"xx/xxx/(配置上自定义工程中的具体使用接口路径)" } ], "workCompletedAttachmentDownloadEvents":[ { "enable": true, "processes": [], "custom": "x_xxx(配置上自定义工程包名)", "url":"xx/xxx/(配置上自定义工程中的具体使用接口路径)" } ] },
"extensionEvents": { "docAttachmentDownloadEvents":[ { "enable": true, "applications": [], "categories": [], "custom": "x_xxx(配置上自定义工程包名)", "url":"xx/xxx/(配置上自定义工程中的具体使用接口路径)" } ] }