[Erik Pfingsten] I ended up doing something very similar with WriteSelectedRows (writing one line at a time and checking if I need a new page after each line), but I will read up on the ColumnText option you suggest.
Thanks for the help, it is appreciated Erik Pfingsten > -----Original Message----- > From: 1T3XT info [mailto:[email protected]] > Sent: Wednesday, April 15, 2009 10:55 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Building a pdf with tables that break > across multiple pages > > Erik Pfingsten wrote: > 3) use WriteSelectedRows to write N columns out to page one and the > remaining columns out to page two (as in figure 6.10 in the book) > > Note that writeSelectedRows returns a Y position, you could write one > row at a time and decide if a new page is needed after every row (based > on the calculated height of the next row). > > 4) write the complete table to a larger PdfTemplate using ColumnText; > then add the same PdfTemplate twice, once to the odd pages for the left > part, once to the even pages for the right part. > > I'm 99% sure I have an example of 4) somewhere, but it must date from > before I used to put examples on 1t3xt.info and I don't find it anywhere. > > I have been answering iText questions the whole day (on and off list). > The fact that I need to spend that much on the mailing list really > compromises the creation of new examples, documentation and new > functionality! And if I don't have the time to write documentation, the > constant flow of questions on the list will never stop. > > This isn't a remark aimed at you personally; I was more annoyed by the > stupid question from GE this morning and by some really trivial > questions earlier today. (Your question was actually a good one; if I > had more time, I'd written an example for you.) It's just that my > "working day" is almost over now, and I have the feeling I haven't done > any "real" work; that's very frustrating. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > -------------------------------------------------------------------------- > ---- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php This message, including any attachments, may contain information which is confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not read, use, copy or disclose to anyone the message, its attachments, or any information contained therein. If you have received the message in error, please advise the sender by reply e-mail and delete the message and any attachments. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
