Hello,
I have a .docx file that has two tables, both have auto fit enabled. When exporting to PDF cells that have preferred width set to 1%, gets split into new line.
Screenshot from word:
Screenshot from exported PDF:
The issue is not present when there are no borders on the affected cells from left or right or when border line width is set to 2, 2.5 or 3. (Currently it is 2.25)
Also the issue is not present if the font used is Times new roman (currently it is Calibri), or font size is bigger than 14. (Currently 11)
Code used to export to PDF:
Document doc1 = new Document(new FileInputStream(new File("path/to/text split.docx")));
doc1.save("exported.pdf");
Attaching the docx file and pdf:
text split.docx (10.3 KB)
exported.pdf (14.7 KB)