David Woosley wrote:
I need to create a PdfPTable that spans the bottom half of continuous
pages. The top half of each page will contain different fields that
are easily filled using a stamper. The table will contain cells with
multi-line text, so I can't predict the height of each row. Before I
start coding this beast, is this the correct approach?
(1) Fill fields on top half of the page using the stamper.
(2) Set table width.
(3) Add a row.
(4) Check table height and if the table fits the designated area,
repeat #3.
(5) If the table doesn't fit, writeSelectedRows (except for the
last row added).
(6) Go to next page.
(7) Go to step #1.
Is there a better way? I'm hoping so.
Where do you want the remaining part of the table to start on the next page?
I think you should try adding the table to a ColumnText object and use that
object to do all the checking (if the column with the table fits the
page or not
etc...).
br,
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions