开发者

Move to next page if Table can not adjust in current page using iText

I am generating a PDF report using iText. The report consists of four parts:

  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 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 pag开发者_运维技巧e.

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 do this?


try the setSplitLate method of PdfPTable

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜