此应用为嵌入O2OA开发平台选项卡的PDF预览插件,可以针对流程、内容管理、网盘或者外部pdf文件的预览。
使用方法
var fileUrl = "要预览的pdf路径";var options = {"fileUrl": fileUrl,"title": "我是标题","appId": "PdfViewer" + o2.uuid()};layout.openApplication(null, "PdfViewer", options);
var fileUrl = "要预览的pdf路径";
var options = {
"fileUrl": fileUrl,
"title": "我是标题",
"appId": "PdfViewer" + o2.uuid()
};
layout.openApplication(null, "PdfViewer", options);