Hi John! I had the same kind of problem. I solved it the following way:
Everything, that is placed in the pdf, is converted (encapsulated) into a PdfPTable - if it is NOT a table (like Phrases or Paragraphs). The reason: Only the PdfPTable knows its height in the page. So, I counted the tables, I calculated the height of all tables inserted into the page, then I knew the complete height - ergo the position on the page. If you need more information, I could post some codings... Hope this helps you! Best regards, -André PS: Next time, please do NOT send your emails in HTML-Format, please use plain-text. Thanks. >Von: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Im Auftrag von >Rogers, John >Gesendet: Dienstag, 11. April 2006 14:05 >An: [email protected] >Betreff: [iText-questions] Inserting a page break > >I need to know where I am on the page before I enter a couple of small >>tables. I don't want two of the tables on the bottom of one page, and >the >third table on the top of the next page. If I know I don't have >room on the >bottom of the page for all three tables to fit, I can issue >a newpage(), but >I don't know how to find out where I am on the current >page. > John Rogers > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
