IN PDF CELL MERGES NOT REFLECT

Shailendra Goad <[email protected]> Thu, 6 Jul 2023 15:22:58 +0530 (IST)
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <[email protected]>
 
 
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