摘要: <!-- 多格式转pdf --> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.27</version> </dependency> <dependency 阅读全文
posted @ 2023-10-25 10:44 青核桃啊 阅读(28) 评论(0) 推荐(0) 编辑
摘要: public static String mdToPdfConverter(String mdFilePath, String pdfFilePath, String fontPath) throws Exception { // 创建Document对象 Document document = n 阅读全文
posted @ 2023-10-25 10:35 青核桃啊 阅读(66) 评论(0) 推荐(0) 编辑
摘要: public static String docToPdfConverter (String docFilePath, String pdfFilePath, String fontPath) throws Exception { FileInputStream file = new FileInp 阅读全文
posted @ 2023-10-25 10:35 青核桃啊 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 public static String docxToPdfConverter (String docxFilePath, String pdfFilePath, String fontPath) throws Exception { 2 FileInputStream file = new F 阅读全文
posted @ 2023-10-25 10:34 青核桃啊 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1 public static String txtToPdfConverter(String txtFilePath, String pdfFilePath, String fontPath) throws Exception { 2 // 创建Document对象 3 Document docu 阅读全文
posted @ 2023-10-25 10:33 青核桃啊 阅读(19) 评论(0) 推荐(0) 编辑