tags:

views:

124

answers:

1

I am generating a PDF report using iText. The report is having four parts as -

  1. Project Info1 (A PDF Table of variable height)
  2. Project Info2 (A PDF Table of variable height)
  3. Requestor Info (A PDF Table of Fixed height)
  4. Location Info (A PDF Table of Fixed height)

The top two information are of variable height and they can acquire certain pages. The other two are of fixed size which comes at last. I want to move the last (one or both) boxes to the next page if there is no space available to fit those boxes in current page. If space for one box is available then place one to the current page and move other box to the next table. Is there way to decide this?

A: 

try the setSplitLate method of PdfPTable

Pier Luigi