Office 文档转 PDF 服务 XOffice 2.0.0 发布

栏目: 软件资讯 · 发布时间: 4年前

内容简介:XDOC Office Server是一个JavaEE服务,用于将Office文档转换为PDF,格式兼容性好。 版本更新 安装包集成JACob、JRE、Tomcat,直接解压一键部署 非法URL自动编码修正 新增Java客户端,调用XOffice简单易用 URL调用...

XDOC Office Server是一个JavaEE服务,用于将Office文档转换为PDF,格式兼容性好。

版本更新

  1. 安装包集成JACob、JRE、Tomcat,直接解压一键部署
  2. 非法URL自动编码修正
  3. 新增 Java 客户端,调用XOffice简单易用

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();
  }
}

项目地址

https://gitee.com/xdoc/xoffice


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Automate This

Automate This

Christopher Steiner / Portfolio / 2013-8-9 / USD 25.95

"The rousing story of the last gasp of human agency and how today's best and brightest minds are endeavoring to put an end to it." It used to be that to diagnose an illness, interpret legal docume......一起来看看 《Automate This》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具