2 Star 33 Fork 13

Lboot / lucy-onlyoffice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

文档

lucy-onlyoffice是依赖于onlyofficespringboot集成解决方案,该解决方案简化了onlyoffice的使用难度,支持对常见文档类型的预览,编辑和转化。该解决方案提供了功能的拓展实现,用户可以基于拓展接口,实现业务系统和该解决方案的集成。

  • 支持 doc、docx、xlsx、pptx 等常见 office格式文件的预览和编辑 ,完整支持列表如下:
    • word - 文本文档 (.djvu、.doc、.docm、.docx、.docxf、.dot、.dotm、.dotx、.epub、.fb2、.fodt、.htm、.html、.mht、.mhtml、.odt、.oform、.ott、.oxps、.pdf、.rtf、.stw、.sxw、.txt、.wps、.wpt、.xml、.xps),
    • cell - 电子表格 (.csv、.et、.ett、.fods、.ods、.ots、.sxc、.xls、.xlsb、.xlsm、.xlsx、.xlt、.xltm、.xltx、.xml),
    • slide - 演示文稿 (.dps、.dpt、.fodp、.odp、.otp、.pot、.potm、.potx、.pps、.ppsm、.ppsx、.ppt、.pptm、.pptx、.sxi)。
  • 支持 文件转化为 pdf
  • 支持 生成文件缩略图

安装

使用该功能之前,需要完成 OnlyOffice安装

lucy-onlyoffice支持jar引入集成和独立部署安装(下载源码自行打包部署)

1. 配置仓库源

pom.xml中配置jitpack

<repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://www.jitpack.io</url>
        </repository>
</repositories>

2. 引入依赖

根据更新日志决定版本号引入依赖

version与更新日志对应

<dependency>
    <groupId>com.gitee.lboot</groupId>
    <artifactId>lucy-onlyoffice</artifactId>
    <version>${version}</version>
</dependency>

3. 修改配置文件

需要在application.properties配置onlyoffice服务地址 & 服务的部署地址

参数 介绍
服务地址 onlyoffice部署的地址
回调地址 业务系统部署地址 + 接收编辑回调路由

测试接口配置可选,配置该值为 true 开启默认接口,可以直接使用,参考快速上手

# 服务地址 -> 将 http://office.example.cn 替换为 onlyoffice部署地址
onlyoffice.document.host=http://office.example.cn

# 回调地址 -> 将 http://onlytest.example.cn 替换为 业务系统部署地址
onlyoffice.document.callback.host=http://onlytest.example.cn/office/callback

# 测试接口
onlyoffice.api.enable=true
MIT License Copyright (c) 2023 Kindear Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

OnlyOffice SpringBoot 集成解决方案 展开 收起
Java 等 2 种语言
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lboot/lucy-onlyoffice.git
git@gitee.com:lboot/lucy-onlyoffice.git
lboot
lucy-onlyoffice
lucy-onlyoffice
master

搜索帮助