Stanislav wrote:
> Hi!
> 
> I have several small tables in my pdf document. I have situation when one 
> small (3-4 rows) table
> splits over two pages because page break occur. is there any way to avoid 
> that?

Put the PdfPTable inside a ColumnText object.
Add the ColumnText in simulation mode.

If ColumnText says no (I've been watching
the 'computer says no' sketch in Little Britain
yesterday), invoke the newPage() method.

Put the PdfPtable inside the ColumnText (again).
Add the ColumnText object for real.

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to