mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-04-04 14:43:41 +08:00
This commit is contained in:
parent
8c763599fe
commit
1d39360c60
@ -1,4 +1,4 @@
|
||||
FROM keking/kkfileview-base:4.4.0
|
||||
ADD server/target/kkFileView-*.tar.gz /opt/
|
||||
ENV KKFILEVIEW_BIN_FOLDER=/opt/kkFileView-4.4.0-beta/bin
|
||||
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dspring.config.location=/opt/kkFileView-4.4.0-beta/config/application.properties","-jar","/opt/kkFileView-4.4.0-beta/bin/kkFileView-4.4.0-beta.jar"]
|
||||
ENV KKFILEVIEW_BIN_FOLDER=/opt/kkFileView-4.4.0/bin
|
||||
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dspring.config.location=/opt/kkFileView-4.4.0/config/application.properties","-jar","/opt/kkFileView-4.4.0/bin/kkFileView-4.4.0.jar"]
|
||||
|
@ -10,11 +10,8 @@ RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.aliyun.com@g' /etc/apt/sources.li
|
||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&\
|
||||
localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8 &&\
|
||||
locale-gen zh_CN.UTF-8 &&\
|
||||
# 安装微软字体
|
||||
apt-get install -y --no-install-recommends ttf-mscorefonts-installer &&\
|
||||
# 安装文泉驿字体
|
||||
apt-get install -y --no-install-recommends ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy &&\
|
||||
# 清理临时文件
|
||||
apt-get autoremove -y &&\
|
||||
apt-get clean &&\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.keking</groupId>
|
||||
<artifactId>kkFileView-parent</artifactId>
|
||||
<version>4.4.0-beta</version>
|
||||
<version>4.4.0</version>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<artifactId>kkFileView-parent</artifactId>
|
||||
<groupId>cn.keking</groupId>
|
||||
<version>4.4.0-beta</version>
|
||||
<version>4.4.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>kkFileView</artifactId>
|
||||
|
@ -8,7 +8,7 @@ install_redhat() {
|
||||
yum install -y libSM.x86_64 libXrender.x86_64 libXext.x86_64
|
||||
yum groupinstall -y "X Window System"
|
||||
yum localinstall -y *.rpm
|
||||
echo 'install finshed...'
|
||||
echo 'install finished...'
|
||||
else
|
||||
echo 'download package error...'
|
||||
fi
|
||||
@ -20,7 +20,7 @@ install_ubuntu() {
|
||||
if [ $? -eq 0 ];then
|
||||
apt-get install -y libxinerama1 libcairo2 libcups2 libx11-xcb1
|
||||
dpkg -i *.deb
|
||||
echo 'install finshed...'
|
||||
echo 'install finished...'
|
||||
else
|
||||
echo 'download package error...'
|
||||
fi
|
||||
|
@ -7,4 +7,4 @@ echo Please check log file in ../log/kkFileView.log for more information
|
||||
echo You can get help in our official home site: https://kkview.cn
|
||||
echo If you need further help, please join our kk opensource community: https://t.zsxq.com/09ZHSXbsQ
|
||||
echo If this project is helpful to you, please star it on https://gitee.com/kekingcn/file-online-preview/stargazers
|
||||
java -Dspring.config.location=..\config\application.properties -jar kkFileView-4.4.0-beta.jar -> ..\log\kkFileView.log
|
||||
java -Dspring.config.location=..\config\application.properties -jar kkFileView-4.4.0.jar -> ..\log\kkFileView.log
|
||||
|
@ -9,7 +9,7 @@
|
||||
# Description: v1.1:修改进程启动机制为pid形式。
|
||||
#############################
|
||||
#
|
||||
DIR_HOME=("/opt/openoffice.org3" "/opt/libreoffice" "/opt/libreoffice6.1" "/opt/libreoffice7.0" "/opt/libreoffice7.1" "/opt/libreoffice7.2" "/opt/libreoffice7.3" "/opt/libreoffice7.4" "/opt/libreoffice7.5" "/opt/libreoffice7.6" "/opt/openoffice4" "/usr/lib/openoffice" "/usr/lib/libreoffice")
|
||||
DIR_HOME=("/opt/openoffice.org3" "/opt/libreoffice" "/opt/libreoffice6.1" "/opt/libreoffice7.0" "/opt/libreoffice7.1" "/opt/libreoffice7.2" "/opt/libreoffice7.3" "/opt/libreoffice7.4" "/opt/libreoffice7.5" "/opt/libreoffice7.6" "/opt/libreoffice24.2" "/opt/libreoffice24.8" "/opt/libreoffice25.2" "/opt/openoffice4" "/usr/lib/openoffice" "/usr/lib/libreoffice")
|
||||
FLAG=
|
||||
OFFICE_HOME=
|
||||
KKFILEVIEW_BIN_FOLDER=$(cd "$(dirname "$0")" || exit 1 ;pwd)
|
||||
@ -29,7 +29,7 @@ if [ -s "${PID_FILE}" ]; then
|
||||
else
|
||||
cd "$KKFILEVIEW_BIN_FOLDER" || exit 1
|
||||
echo "Using KKFILEVIEW_BIN_FOLDER $KKFILEVIEW_BIN_FOLDER"
|
||||
grep 'office\.home' ../config/application.properties | grep '!^#'
|
||||
grep 'office\.home' ../config/application.properties | grep -v '^#' | grep -v 'default'
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Using customized office.home"
|
||||
else
|
||||
@ -51,7 +51,7 @@ else
|
||||
|
||||
## 启动kkFileView
|
||||
echo "Starting kkFileView..."
|
||||
nohup java -Dfile.encoding=UTF-8 -Dspring.config.location=../config/application.properties -jar kkFileView-4.4.0-beta.jar > ../log/kkFileView.log 2>&1 &
|
||||
nohup java -Dfile.encoding=UTF-8 -Dspring.config.location=../config/application.properties -jar kkFileView-4.4.0.jar > ../log/kkFileView.log 2>&1 &
|
||||
echo "Please execute ./showlog.sh to check log for more information"
|
||||
echo "You can get help in our official home site: https://kkview.cn"
|
||||
echo "If you need further help, please join our kk opensource community: https://t.zsxq.com/09ZHSXbsQ"
|
||||
|
@ -3,7 +3,7 @@ server.port = ${KK_SERVER_PORT:8012}
|
||||
server.servlet.context-path= ${KK_CONTEXT_PATH:/}
|
||||
server.servlet.encoding.charset = utf-8
|
||||
#启用GZIP压缩功能
|
||||
server.compression.enable= true
|
||||
server.compression.enabled = true
|
||||
#允许压缩的响应缓冲区最小字节数,默认2048
|
||||
server.compression.min-response-size = 2048
|
||||
#压缩格式
|
||||
|
@ -86,6 +86,9 @@ public class LocalOfficeUtils {
|
||||
"/opt/libreoffice7.4",
|
||||
"/opt/libreoffice7.5",
|
||||
"/opt/libreoffice7.6",
|
||||
"/opt/libreoffice24.2",
|
||||
"/opt/libreoffice24.8",
|
||||
"/opt/libreoffice25.2",
|
||||
"/usr/lib64/libreoffice",
|
||||
"/usr/lib/libreoffice",
|
||||
"/usr/local/lib64/libreoffice",
|
||||
|
@ -7,7 +7,7 @@
|
||||
|_|\_\ |_|\_\ |_| |_| |_| \___| \/ |_| \___| \_/\_/
|
||||
|
||||
=> Spring Boot :: ${spring-boot.version}
|
||||
=> kkFileView :: 4.4.0-beta
|
||||
=> kkFileView :: 4.4.0
|
||||
=> Home site :: https://kkview.cn
|
||||
=> Github :: https://github.com/kekingcn/kkFileView
|
||||
=> Gitee :: https://gitee.com/kekingcn/file-online-preview
|
||||
|
@ -35,16 +35,56 @@
|
||||
</div>
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">2025年01月11日,v4.4.0版本</h3>
|
||||
<h3 class="panel-title">2025年01月16日,v4.4.0版本</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div>
|
||||
1. 修复压缩包穿越漏洞 <br>
|
||||
2. 新增PDF线程管理,超时管理,内存缓存管理,更新PDF解析组件版本 <br>
|
||||
3. 修复压缩获取路径错误,图片合集路径错误,水印问题等BUG <br>
|
||||
4. 修复前端解析xlsx 包含emf格式文件错误 <br>
|
||||
5. 优化Dockerfile,支持真正的跨平台构建镜像 <br>
|
||||
6. 其他功能优化及已知问题修复<br>
|
||||
<h4>优化</h4>
|
||||
1. 优化 OFD 移动端预览 页面不自适应 <br>
|
||||
2. 更新 xlsx 前端解析组件,加速解析速度 <br>
|
||||
3. 升级 CAD 组件 <br>
|
||||
4. office 功能调整,支持批注、转换页码限制、生成水印等功能 <br>
|
||||
5. 升级 markdown 组件 <br>
|
||||
6. 升级 dcm 解析组件 <br>
|
||||
7. 升级 PDF.JS 解析组件 <br>
|
||||
8. 更换视频播放插件为 ckplayer <br>
|
||||
9. tif 解析更加智能化,支持被修改的图片格式 <br>
|
||||
10. 针对大小文本文件检测字符编码的正确率,处理并发隐患 <br>
|
||||
11. 重构下载文件的代码,新增通用的文件服务器认证访问的设计 <br>
|
||||
12. 更新 bootstrap 组件,并精简掉不需要的文件 <br>
|
||||
13. 更新 epub 版本,优化 epub 显示效果 <br>
|
||||
14. 解决定时清除缓存时,对于多媒体类型文件,只删除了磁盘缓存文件 <br>
|
||||
15. 自动检测已安装 Office 组件,增加 LibreOffice 7.5 & 7.6 版本默认路径 <br>
|
||||
16. 修改 drawio 默认为预览模式 <br>
|
||||
17. 新增 PDF 线程管理、超时管理、内存缓存管理,更新 PDF 解析组件版本 <br>
|
||||
18. 优化 Dockerfile,支持真正的跨平台构建镜像 <br>
|
||||
<br>
|
||||
<h4>新增</h4>
|
||||
1. xlsx 新增支持打印功能 <br>
|
||||
2. 配置文件新增启用 GZIP 压缩 <br>
|
||||
3. CAD 格式新增支持转换成 SVG 和 TIF 格式,新增超时结束、线程管理 <br>
|
||||
4. 新增删除文件使用验证码校验 <br>
|
||||
5. 新增 xbrl 格式预览支持 <br>
|
||||
6. PDF 预览新增控制签名、绘图、插图控制、搜索定位页码、定义显示内容等功能 <br>
|
||||
7. 新增 CSV 格式前端解析支持 <br>
|
||||
8. 新增 ARM64 下的 Docker 镜像支持 <br>
|
||||
9. 新增 Office 预览支持转换超时属性设置功能 <br>
|
||||
10. 新增预览文件 host 黑名单机制 <br>
|
||||
<br>
|
||||
<h4>修复</h4>
|
||||
1. 修复 forceUpdatedCache 属性设置,但本地缓存文件不更新的问题 <br>
|
||||
2. 修复 PDF 解密加密文件转换成功后后台报错的问题 <br>
|
||||
3. 修复 BPMN 不支持跨域的问题 <br>
|
||||
4. 修复压缩包二级反代特殊符号错误问题 <br>
|
||||
5. 修复视频跨域配置导致视频无法预览的问题 <br>
|
||||
6. 修复 TXT 文本类分页二次加载问题 <br>
|
||||
7. 修复 Drawio 缺少 Base64 组件的问题 <br>
|
||||
8. 修复 Markdown 被转义问题 <br>
|
||||
9. 修复 EPUB 跨域报错问题 <br>
|
||||
10. 修复 URL 特殊符号问题 <br>
|
||||
11. 修复压缩包穿越漏洞 <br>
|
||||
12. 修复压缩获取路径错误、图片合集路径错误、水印问题等 BUG <br>
|
||||
13. 修复前端解析 XLSX 包含 EMF 格式文件错误问题 <br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -61,8 +101,8 @@
|
||||
3. 修复 forceUpdatedCache 属性设置,但是本地缓存文件不更新缺陷 <br>
|
||||
4. 配置文件新增启用 GZIP压缩 <br>
|
||||
5. 升级CAD组件,CAD格式新增支持 转换成svg tif 格式 新增 超时结束 新增线程管理 <br>
|
||||
6. 删除功能 新增验证码方法 <br>
|
||||
7. office 功能调整 支持批注 转换页码限制 生成水印等等 <br>
|
||||
6. 删除功能 新增验证码方法 <br>
|
||||
7. office 功能调整 支持批注 转换页码限制 生成水印等等 <br>
|
||||
8. 新增xbrl格式 <br>
|
||||
9. 修复PDF解密加密文件 转换成功后台报错问题 <br>
|
||||
10. 升级markdown组件 修复markdown被转义问题 <br>
|
||||
|
Loading…
Reference in New Issue
Block a user