OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

Multiline table cell missing lines on page wrap

Open fellmann opened this issue 1 year ago • 2 comments

Describe the bug When a table cell contains multiple lines and the cell wrap to the next page, lines are missing.

To Reproduce See output of TableRowSpanEvenSplitTest.java:threeWithLargeRowspanCellHugeTableTest, attached as file.

threeWithLargeRowspanCellHugeTableTest.pdf

Expected behavior All lines should be visible in the generated PDF.

Screenshots image

fellmann avatar Jan 09 '24 13:01 fellmann

Pull requests to solve this is welcome.

Thank you for reporting.

andreasrosdal avatar Jan 09 '24 13:01 andreasrosdal

This bug is also present in OpenPDF versions 1.3.30, 1.3.0 and 1.2.1. So this is not a recent regression, and has been this way for a long time.

Is it possible to examine the generated .PDF file to see if the missing "rowspan7" line text is missing from the generated PDF file, or if the text line is just not visible.

So it's a question if the missing "rowspan7" line is generated at all by OpenPDF, or if it is generated in a way so that it is not visible when the row cell is part of a page wrap, or if the cell height is incorrect when crossing page wrap so that the extra text line is hidden by overflow.

andreasrosdal avatar Jan 09 '24 20:01 andreasrosdal