You have PdfWriter.getVerticalPosition() but generally if you need that you should take care yourself of the layout using ColumnText and PdfPTable placed at absolute positions.
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <itext-questions@lists.sourceforge.net>; <[EMAIL PROTECTED]> Sent: Thursday, August 11, 2005 2:34 PM Subject: Re: [iText-questions] Orphans and widdows in the pdf document > Thanks, Paulo. > > As a table header you mean the first row of the table (or a set of rows > given by the HEADER parameter)? > > What I would like to know is how to figure out the current possition in > the pdf document. Say, I had added the table into the document and want to > know the position where the next element would go when using > Document#add(). Is there a way to obtain such information? > > Sorry if I am asking the obvious but I have spent quite a lot of time > browsing through the examples already. > > Thanks, > > Mirek. > > > > > > > "Paulo Soares" <[EMAIL PROTECTED]> > 10.08.2005 19:14 > Please respond to "Paulo Soares" > > > To: <itext-questions@lists.sourceforge.net>, <[EMAIL PROTECTED]> > cc: > Subject: Re: [iText-questions] Orphans and widdows in the pdf document > > > Try to include the Phrase as a table header. The other option is to do > your > own layout ay absolute positions. > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <itext-questions@lists.sourceforge.net> > Sent: Wednesday, August 10, 2005 5:26 PM > Subject: [iText-questions] Orphans and widdows in the pdf document > > > > Hello, > > > > I am having troubles with my pdf document structured like this: > > > > Phrase > > PdfPTable > > Phrase > > Phrase > > PdfPTable > > etc. > > > > Very often the Phrase is associated with the next PdfPTable because it > is > > it's title and sometimes it happens to be left on the previous page. Is > > there any way in iText to avoid orphans/widdows? > > > > Thanks in advance, > > > > Mirek. > > > > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions