When I convert .docx to .pdf all bullets are coming as question mark when I am using character encoding as 'windows-1258' or 'US-ASCII'. If PdfOptions I am keeping empty I am not getting bullets in output pdf file. Please help me on how to fix this. Code I am using - XWPFDocument document = new XWPFDocument(new FileInputStream(new File(inFilePath))); File outFile = new File(outFilePath); OutputStream out = new FileOutputStream(outFile); PdfOptions pdfOption= PdfOptions.create().fontEncoding("US-ASCII"); PdfConverter.getInstance().convert(document, out, pdfOption); out.close();
PdfConverter is not part of Apache POI. This is likely another case of confusion from xdocreport incorrectly using org.apache.poi namespace, you need to first talk to the developer of xdocreport...
BTW, xdocreport fixed the package naming in v2.0 via https://github.com/opensagres/xdocreport/issues/174