1 Star 0 Fork 200

gether / xoffice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

XDOC Office Server

简介

一个JavaEE服务,将Office文档转换为PDF,格式兼容性好。 docx pdf

安装部署

  1. 安装微软Office 2010或以上版本
  2. 解压release/xoffice.zip,运行startup.bat

URL调用

http://locahost:9090/xoffice?_xformat=*文档格式*&_file=*文档地址*&_watermark=*水印*

文档格式:doc、docx、xls、xlsx、ppt、pptx

文档地址:http协议地址,需要用UTF-8编码

水印:pdf水印文本

例:http://locahost:9090/xoffice?_xformat=docx&_file=http%3A%2F%2Flocahost%3A9090%2Fxoffice%2Fdemo.docx&_watermark=https%3A%2F%2Fview.xdocin.com

XOfficeClient调用


public static void main(String[] args) {
  XOfficeClient xc = new XOfficeClient("http://localhost:9090");
  try {
    xc.setWatermark("https://view.xdocin.com");
    xc.to(new File("c:/tmp.docx"), new File("c:/tmp.pdf"));
  } catch (IOException e) {
    e.printStackTrace();
  }
}

开源协议

MIT

技术支持

https://view.xdocin.com

空文件

简介

一个JavaEE服务,将Office文档转换为PDF,格式兼容性好,源文档格式支持doc、docx、xls、xlsx、ppt、pptx。 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/ado10086/xoffice.git
git@gitee.com:ado10086/xoffice.git
ado10086
xoffice
xoffice
master

搜索帮助