Java Poi XWPF convert Docx to PDF DrawText issus

3.7k Views Asked by At

I am converting docx files to pdf using Poi XWPF, the result is good, but the DrawText are missing, how can i fix this?

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

There are 0 best solutions below