Re: IN PDF CELL MERGES NOT REFLECT

PJ Fanning <[email protected]> Thu, 6 Jul 2023 10:02:39 +0000 (UTC)
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <[email protected]>
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 <[email protected]> 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