Search code examples
xsl-foapache-fopdocx4j

export to PDF table columns not wrapped


I created very simple test which contains table with 2 columns. One column contains long line without spaces and second columns small line. In doc I see that line from the first line is wrapped

And I convert this document to PDF using

Result is the same - line from first column is writed over second column


Solution

  • Not a solution, but since this is an XSL FO / FOP issue, for insight into the issue, please see:

    XSL-FO: Force Wrap on Table Entries

    XSL-FO fop. Long text flows into adjacent cells/block, obscuring stuff there

    Tracking at https://github.com/plutext/docx4j/issues/142