LibrePDF / OpenPDF

OpenPDF is a free Java library for creating and editing PDF files, with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Other
3.54k stars 582 forks source link

pdfcell.setRowspan() method may cause line loss bugs when the word count is high #988

Open lixiang453 opened 10 months ago

lixiang453 commented 10 months ago

Describe the bug pdfcell.setRowspan() method may cause line loss bugs when the word count is high

To Reproduce PdfPCell.setColspan(2); PdfPCell.setRawspan(2);

Expected behavior the PdfPCell can still merge rows normally with a large number of words without losing merged rows

Screenshots Both are the same code error: image image right: image image

System (please complete the following information): use openpdf version:1.3.29

Additional context

andreasrosdal commented 10 months ago

Thank you for reporting. Pull requests welcome.

asturio commented 6 months ago

I suspect the problem here is that the content is too big. The text can probably be found in the PDF, but is not being displayed.