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
 

Reply via email to