Docx转为PDF的方法代码如下:
Document Document = new Document(file.getInputStream());
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Document.save(outputStream, SaveFormat.PDF);
Files.write(Paths.get("/Users/p…...save("/Users/pizhai/Downloads/aspose_doc.pdf", SaveFormat.PDF); 代码运行环境:...KB) 转换结果中的问题: image.png (143.3 KB) image.png (119.8 KB) 但是如果保存为docx,然后在Office...