aspose-words-19.6-jdk17.jar word转pdf工具,亲测可用
/** * TODO(用一句话描述该文件的作用) * * @title: AsposeToPDF.java * @author Administrator * @date 2019年6月27日 下午5:02:42 */ package com.lease.api.finance.utils; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import com.aspose.words.Document; import com.aspose.words.SaveFormat; /** * TODO(这里用一句话描述这个类的作用) * * @className AsposeToPDF * @author Administrator * @version V1.0 2019年6月27日 下午5:02:42 TODO(如果是修改版本,描述修改内容) */ public class AsposeToPDF { public static void main(String[] args) { officeToPDF("D:\\print\\abc.doc", "D:\\print\\abc.pdf"); } public static void officeToPDF(String inPath, String outPath) { FileOutputStream os = null; try { File file = new File(outPath); // 新建一个空白pdf文档 os = new FileOutputStream(file); Document doc = new Document(inPath); // Address是将要被转化的word文档 doc.save(os, SaveFormat.PDF); } catch (Exception e) { e.printStackTrace(); } finally { if (os != null) { try { os.close(); } catch (IOException e) { e.printStackTrace(); } } } } }
- fish_20142020-03-28新版本可用,非常帮!
- killer3222019-11-27license 呢?老版本的失效了
- 施主、请留步。2019-10-15可用,非常棒
- goodguy882019-11-27额,理解错了,以为是crack版本。浪费了5分啊。
- Fanny2021-09-02Invalid license signature. Please make sure the license file was not modified.
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助