Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
slm-fileview
Commits
9786fa82
Commit
9786fa82
authored
Jun 19, 2019
by
陈精华
Committed by
kl
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.1.0版
parent
37762cf0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
31 deletions
+23
-31
Dockerfile
Dockerfile
+3
-3
README.en.md
README.en.md
+8
-12
README.md
README.md
+8
-12
pom.xml
jodconverter-web/pom.xml
+1
-1
startup.bat
jodconverter-web/src/main/bin/startup.bat
+2
-2
startup.sh
jodconverter-web/src/main/bin/startup.sh
+1
-1
No files found.
Dockerfile
View file @
9786fa82
...
...
@@ -27,5 +27,5 @@ RUN yum install -y kde-l10n-Chinese &&\
mkfontdir
&&
\
fc-cache
-fv
ENV
LC_ALL zh_CN.UTF-8
ENV
KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.1.0-SNAPSHOT/bin
ENTRYPOINT
["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-2.1.0-SNAPSHOT/conf/application.properties","-jar","/opt/kkFileView-2.1.0-SNAPSHOT/bin/kkFileView-2.1.0-SNAPSHOT.jar"]
\ No newline at end of file
ENV
KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.1.0/bin
ENTRYPOINT
["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-2.1.0/conf/application.properties","-jar","/opt/kkFileView-2.1.0/bin/kkFileView-2.1.0.jar"]
\ No newline at end of file
README.en.md
View file @
9786fa82
...
...
@@ -58,26 +58,22 @@ Considering space issues, the pictures of other types of documents will not be s
-
Jodconverter
> Dependencies
-
Redis(Optional, Unnecessary by default)
-
OpenOffice or LibreOffice
-
OpenOffice or LibreOffice
(Integrated on Windows, will be installed automatically on Linux, need to be manually installed on Mac OS)
1.
First step:
`git pull https://github.com/kekingcn/file-online-preview.git`
2.
Second step:configure redis address and OpenOffice directory,such as
```
##The folder for files which are uploaded to the server(Because of running as jar)
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
## openoffice configuration
office.home = C:\\Program Files (x86)\\OpenOffice 4
```
'file.dir' is the real storage address of the converted files, please end with '/'.
3.
Third step:Run the main method of FilePreviewApplication.java.After starting,visit
`http://localhost:8012/`
.
2.
Third step:Run the main method of FilePreviewApplication.java.After starting,visit
`http://localhost:8012/`
.
If everything is ok,you will see the picture below.

### Changelog
> June 18th 2019 :
1.
Support automatic cleaning of cache and preview files
2.
Support http/https stream url file preview
3.
Support FTP url file preview
4.
Add Docker build
> April 8th 2019
1.
Cache and queue implementations abstract, providing JDK and REDIS implementations (REDIS becomes optional dependencies)
2.
Provides zip and tar.gz packages, and provides a one-click startup script
...
...
README.md
View file @
9786fa82
...
...
@@ -52,26 +52,22 @@ QQ群号:613025121
-
jodconverter
> 依赖外部环境
-
redis (可选,默认不用)
-
OpenOffice或者LibreOffice
-
OpenOffice或者LibreOffice
(Windows下已内置,Linux会自动安装,Mac OS下需要手动安装)
1.
第一步:pull项目https://github.com/kekingcn/file-online-preview.git
2.
第二步:配置OpenOffice目录,如
```
##资源映射路径(因为jar方式运行的原因)
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
## openoffice相关配置
office.home = C:\\Program Files (x86)\\OpenOffice 4
```
file.dir为转换文件实际存储地址,注意要以/结尾
3.
第三步:运行FilePreviewApplication的main方法,服务启动后,访问http://localhost:8012/
3.
第二步:运行FilePreviewApplication的main方法,服务启动后,访问http://localhost:8012/
会看到如下界面,代表服务启动成功

### 历史更新记录
> 2019年06月18日 :
1.
支持自动清理缓存及预览文件
2.
支持http/https下载流url文件预览
3.
支持FTP url文件预览
4.
加入Docker构建
> 2019年04月08日 :
1.
缓存及队列实现抽象,提供JDK和REDIS两种实现(REDIS成为可选依赖)
2.
打包方式提供zip和tar.gz包,并提供一键启动脚本
...
...
jodconverter-web/pom.xml
View file @
9786fa82
...
...
@@ -12,7 +12,7 @@
<groupId>
cn.keking
</groupId>
<artifactId>
kkFileView
</artifactId>
<version>
2.1.0
-SNAPSHOT
</version>
<version>
2.1.0
</version>
<properties>
...
...
jodconverter-web/src/main/bin/startup.bat
View file @
9786fa82
...
...
@@ -4,4 +4,4 @@ cd "%KKFILEVIEW_BIN_FOLDER%"
echo Using KKFILEVIEW_BIN_FOLDER %KKFILEVIEW_BIN_FOLDER%
echo Starting kkFileView...
echo Please check log file for more information
java -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -Dspring.config.location=..\conf\application.properties -jar kkFileView-2.1.0-SNAPSHOT.jar -> ..\log\kkFileView.log
\ No newline at end of file
java -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -Dspring.config.location=..\conf\application.properties -jar kkFileView-2.1.0.jar -> ..\log\kkFileView.log
\ No newline at end of file
jodconverter-web/src/main/bin/startup.sh
View file @
9786fa82
...
...
@@ -27,4 +27,4 @@ else
fi
echo
"Starting kkFileView..."
echo
"Please check log file for more information"
nohup
java
-D
sun
.java2d.cmm
=
sun.java2d.cmm.kcms.KcmsServiceProvider
-Dspring
.config.location
=
../conf/application.properties
-jar
kkFileView-2.1.0-SNAPSHOT
.jar
>
../log/kkFileView.log 2>&1 &
nohup
java
-D
file
.encoding
=
UTF-8
-Dsun
.java2d.cmm
=
sun.java2d.cmm.kcms.KcmsServiceProvider
-Dspring
.config.location
=
../conf/application.properties
-jar
kkFileView-2.1.0
.jar
>
../log/kkFileView.log 2>&1 &
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment