Bug 60913 - Bullets in .docx to pdf issues
Summary: Bullets in .docx to pdf issues
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.15-FINAL
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-24 11:13 UTC by pooja.dhannawat535
Modified: 2017-06-16 20:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pooja.dhannawat535 2017-03-24 11:13:50 UTC
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();
Comment 1 Dominik Stadler 2017-06-16 20:26:24 UTC
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...
Comment 2 Dominik Stadler 2017-06-16 20:31:31 UTC
BTW, xdocreport fixed the package naming in v2.0 via https://github.com/opensagres/xdocreport/issues/174