0
我需要将docx
转换为pdf
。以下代码使用库xdocreport
并且工作得很好。使用xdocreport,是否可以从docx文件读取图形?
问题是针对某些包含图纸的特定docx
。它们在最终的pdf中不可见。我已经通过github上的live demo进行了测试,我也遇到了同样的问题。
所以我想知道,这是可能的,还是我需要使用其他库?哪一个 ? (dox4j似乎也不适用)。
final XWPFDocument document = new XWPFDocument(inputStream);
final OutputStream outPdf = new FileOutputStream("myFile.pdf");
PdfConverter.getInstance().convert(document, outPdf, optionsPdf);
outPdf.close();