The PDF converter tool is not an Apache POI tool. Use Stackoverflow or contact 
the maintainers of the XWPF Converter. 

https://github.com/opensagres/xdocreport






On Thursday 6 July 2023 at 10:59:24 IST, Shailendra Goad 
<shailendra.g...@rutu-soft.com> wrote: 







I am trying to create a table in a DOCX file and then convert it to a PDF using 
Apache POI (version 5.2.3) and the XWPF Converter (version 2.0.4) library. I 
have successfully created the table and merged cells in the DOCX file. However, 
when I convert the DOCX file to PDF using the XWPF Converter, the resulting PDF 
does not have the proper formatting.

ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); 
PdfOptions options = PdfOptions.create(); 
PdfConverter.getInstance().convert(document, byteArrayOutputStream, options); 
byte[] pdfBytes = byteArrayOutputStream.toByteArray();





Thanks & Regards
Shailendra GOAD


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to