kkFileView是国人开源的一款文件文档在线预览项目,支持主流办公文档的在线预览,如 doc、docx、Excel、pdf、txt、zip、rar、 图片等格式。项目基于spring boot搭建,遵守Apache 2.0开源协议。
特性:
支持 office, pdf, cad 等办公文档
支持 txt, xml(渲染), md(渲染), java, php, py, js, css 等所有纯文本
支持 zip, rar, jar, tar, gzip 等压缩包
支持 jpg, jpeg, png, gif, tif, tiff 等图片预览(翻转,缩放,镜像)
支持mp3,wav,mp4,flv 多媒体播放和预览.
rest 接口提供服务,跨语言、跨平台特性(java,php,python,go,php,….)都支持,应用接入简单方便.
抽象预览服务接口,方便二次开发,方便添加其他类型文件预览支持.
https://github.com/kekingcn/kkFileView
-------------------------------
Universal File Online Preview Project based on Spring-Boot 。
kkFileView
Introduction
Document online preview project solution, built using the popular Spring Boot framework for easy setup and deployment. This versatile open source project provides basic support for a wide range of document formats, including:
- Supports Office documents such as
doc
,docx
,xls
,xlsx
,xlsm
,ppt
,pptx
,csv
,tsv
, ,dotm
,xlt
,xltm
,dot
,xlam
,dotx
,xla,
etc. - Supports domestic WPS Office documents such as
wps
,dps
,et
,ett
,wpt
. - Supports OpenOffice, LibreOffice office documents such as
odt
,ods
,ots
,odp
,otp
,six
,ott
,fodt
andfods
. - Supports Visio flowchart files such as
vsd
,vsdx
. - Supports Windows system image files such as
wmf
,emf
. - Supports Photoshop software model files such as
psd
. - Supports document formats like
pdf
,ofd
, andrtf
. - Supports software model files like
xmind
. - Support for
bpmn
workflow files. - Support for
eml
mail files - Support for
epub
book documents - Supports 3D model files like
obj
,3ds
,stl
,ply
,gltf
,glb
,off
,3dm
,fbx
,dae
,wrl
,3mf
,ifc
,brep
,step
,iges
,fcstd
,bim
, etc. - Supports CAD model files such as
dwg
,dxf
, 'dwf'. - Supports all plain text files such as
txt
,xml
(rendering),md
(rendering),java
,php
,py
,js
,css
, etc. - Supports compressed packages such as
zip
,rar
,jar
,tar
,gzip
,7z
, etc. - Supports image previewing (flip, zoom, mirror) of
jpg
,jpeg
,png
,gif
,bmp
,ico
,jfif
,webp
, etc. - Supports image information model files such as
tif
andtiff
. - Supports image format files such as
tga
. - Supports vector image format files such as
svg
. - Supports
mp3
,wav
,mp4
,flv
. - Supports many audio and video format files such as
avi
,mov
,wmv
,mkv
,3gp
, andrm
. - Supports for
dcm
. - Supports for
drawio
.
Features
- Build with the popular frame spring boot
- Easy to build and deploy
- Basically support online preview of mainstream office documents, such as Doc, docx, Excel, PDF, TXT, zip, rar, pictures, etc
- REST API
- Abstract file preview interface so that it is easy to extend more file extensions and develop this project on your own
Official website and DOCS
Live demo
Please treat public service kindly, or this would stop at any time.
Quick Start
Technology stack
- Spring boot: spring boot Development Reference Guide
- Freemarker
- Redisson
- Jodconverter
Dependencies
- Redis(Optional, Unnecessary by default)
- OpenOffice or LibreOffice(Integrated on Windows, will be installed automatically on Linux, need to be manually installed on Mac OS)
-
First step:
git pull https://github.com/kekingcn/kkFileView.git
-
second step:Run the main method of
/server/src/main/java/cn/keking/ServerMain.java
. After starting,visithttp://localhost:8012/
.
from