Java Poi XWPF将Docx转换为PDF DrawText issus

时间:2013-08-02 05:13:34

标签: java docx pdf-conversion xwpf

我正在使用Poi XWPF将docx文件转换为pdf,结果很好,但DrawText丢失了,我该如何解决这个问题?

XWPFDocument document = new XWPFDocument(inputStream);
PdfOptions options = PdfOptions.create().fontEncoding("windows-1250");
OutputStream out = new FileOutputStream(new File(outputTemplate));
org.apache.poi.xwpf.converter.pdf.PdfConverter.getInstance().convert(document, out, options);

The text disappear in the pdf

0 个答案:

没有答案