docx转为PDF的方法代码如下:
Document document = new Document(file.getInputStream());
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
document.save(outputStream, SaveFormat.PDF);
Files.write(Paths.get("/Users/p…...words从html制作的docx文件转为PDF样式表现混乱,但是把docx文件改一下再撤回再保存之后,再使用aspose...experiencing with the PDF conversion from the DOCX file may stem...