GlenKPeterson / PdfLayoutManager

Adds line-breaking, page-breaking, tables, and styles to PDFBox
45 stars 20 forks source link

Cannot fix the bottom margin? #14

Open NayabHussain opened 7 years ago

NayabHussain commented 7 years ago

when the table row adds dynamically ,row was splitting in the bottom margin, half row will be in one page and another half row will be in another page.

GlenKPeterson commented 7 years ago

Most classes have a public XyDim calcDimensions() that you can call and compare result.y to lp.yPageBottom(). The zero Y-value is at the top of the page, so result.y > lp.yPageBottom() means you have enough room left on the page.