From 87096364d8775ecedbcc1abc31755d07b88c1c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Wed, 3 Jul 2019 17:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=A4=BA=E4=BE=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=81=E9=A6=96=E9=A1=B5=E6=9B=B4=E6=96=B0=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/web/index.ftl | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/jodconverter-web/src/main/resources/web/index.ftl b/jodconverter-web/src/main/resources/web/index.ftl index 58e3432e..9185cb46 100644 --- a/jodconverter-web/src/main/resources/web/index.ftl +++ b/jodconverter-web/src/main/resources/web/index.ftl @@ -29,22 +29,15 @@ 如果你的项目需要接入文件预览项目,达到对docx、excel、ppt、jpg等文件的预览效果,那么通过在你的项目中加入下面的代码就可以 成功实现:
-                        $scope.openWin = function (fileUrl) {
-                            var url = configuration.previewUrl + encodeURIComponent(fileUrl);
-                            var winHeight = window.document.documentElement.clientHeight-10;
-                            $window.open(url, "_blank", "height=" + winHeight
-                                + ",top=80,left=80,toolbar=no, menubar=no, scrollbars=yes, resizable=yes");
-                        };
+var url = 'http://127.0.0.1:8080/file/test.txt'; //要预览文件的访问地址
+window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(url));
                     
新增多图片同时预览功能,接口如下:
-                        var fileUrl =url1+"|"+"url2";//多文件使用“|”字符隔开
-                        var url = "http://localhost:8012/picturesPreview?urls" + encodeURIComponent(fileUrl);
-                        var winHeight = window.document.documentElement.clientHeight-10;
-                        $window.open(url, "_blank", "height=" + winHeight
-                                + ",top=80,left=80,toolbar=no, menubar=no, scrollbars=yes, resizable=yes");
+var fileUrl =url1+"|"+"url2";//多文件使用“|”字符隔开
+window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fileUrl));
                     
@@ -86,8 +79,23 @@
+ 2019年06月18日 :
+ 1. 支持自动清理缓存及预览文件
+ 2. 支持http/https下载流url文件预览
+ 3. 支持FTP url文件预览
+ 4. 加入Docker构建

+ + 2019年04月08日 :
+ 1. 缓存及队列实现抽象,提供JDK和REDIS两种实现(REDIS成为可选依赖)
+ 2. 打包方式提供zip和tar.gz包,并提供一键启动脚本

+ + 2018年01月19日 :
+ 1. 大文件入队提前处理
+ 1. 新增addTask文件转换入队接口
+ 1. 采用redis队列,支持kkFIleView接口和异构系统入队两种方式

+ 2018年01月15日 :
- 1.首页新增社会化评论框

+ 1.首页新增社会化评论框

2018年01月12日 :
1.新增多图片同时预览
@@ -100,7 +108,7 @@ 4.引入pdf.js预览doc等文件,支持doc标题生成pdf预览菜单,支持手机端预览

2017年12月12日:
- 1.项目osc开源:https://gitee.com/kekingcn/file-online-preview
+ 1.项目gitee开源:https://gitee.com/kekingcn/file-online-preview
2.项目github开源:https://github.com/kekingcn/kkFileView