Call fitsPage with an extra margin, just in case. 20 is a good number.
Best Regards,
Paulo Soares
----- Original Message -----
From: "Anton Ermak" <[EMAIL PROTECTED]>
To: "iText-questions" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 9:11
Subject: [iText-questions] Porblem with fitsPage / getTableBottom
Hello,
I've note that table height different before and after calling of
Document::add() method. This caused invalid document paging in my
program.
Does anyone have same problem? Please point me to workaround or fix it.
сode i use:
generateRow(mdl);
if( !writer.fitsPage( table ) )
{
table.deleteLastRow();
System.out.println("[Pdf Generator] Table Bottom Before :" +
writer.getTableBottom( table ) );
document.add( table );
System.out.println("[Pdf Generator] Table Bottom After :" +
writer.getTableBottom( table ) );
document.newPage();
makeTable( mdl );
generateRow(mdl);
}
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions