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.62k stars 597 forks source link

keepRowsTogether method not implemented #667

Open ernestoacosta75 opened 2 years ago

ernestoacosta75 commented 2 years ago

Describe the bug After the migration from iText to OpenPDF I;m not able to find an implementation of kepRowsTogether() method as in iText, with the consequence that if I try to add a PdfPPTable in a cell of another PdfPTable, the cell containing the PdfPTable is moved to the next page.

To Reproduce In iText for PdfPTable we have: public void keepRowsTogether(int[] rows) { for(int i = 0; i < rows.length; ++i) { this.getRow(rows[i]).setMayNotBreak(true); }

}

In OpenPDF library this method is missed and the PdfPRow class doesn't have any member attribute called mayNotBreak.

youyumeimei commented 2 years ago

Hello @ernestoacosta75 , our group are interested in this issue, and we will try to fix it. ---- SE_SUSTech, group: Lanrand

ernestoacosta75 commented 2 years ago

Good afternoon youyumeimei, Thanks for the interest of the group about this bug. It's really important for the correct PDF generation processs. Hoping to get other feedback from the group soon, I wish to all of you a nice weekend. Best regards, Ernesto.