Have you tried just seeting the page margins? I solved similar situation with preformating this table before the page starts. It is possible to find out its height and this hight was used to reduce "printable" area for usual document.add() methods. In your case: info.getTotalHeight()
My sequence: -->prepare table -->getTotalHeight() -->change page margins -->write to page -->onPageEnd: write table and (if wanted) change margins of next page But may be it is not suitable for your purpose. GG -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gabe Johnson Sent: Tuesday, December 02, 2003 11:14 PM To: [EMAIL PROTECTED] Subject: [iText-questions] PdfPTable absolute positioning mixed with non-absolute document.add()s I'm working with iText to create some invoices. I have a header that appears at the top of every page. This header is written at absolute coordinates using PdfPTable's writeSelectedRows() method in response to a page started event. My problem is that at this point, the 'cursor' is still pointing to the top of the page, so if I do a document.add(new Phrase("Foo")) at this point, Foo is written on top of my header. Is it possible to reposition the cursor (my own term, I don't know what the real word for this is, if there is one at all)? I've tried resetting the margins, but that didn't seem to work. Code example: (I believe this is all that is relevent) info.writeSelectedRows(0, -1, left, top, cb); document.add(new Phrase("Foo")); // Foo on top of my header -gabe ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions