You can't mix Document.add() with precisely positioned objects. If you have
stringent layout requirements you'll have to use ColumnText and keep track
of the y position.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Brian Hobbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 9:37
Subject: [iText-questions] Re: Is there any way to get the ypos where a
table starts?


> Hi Paulo,
> that's very helpful, thanks, but you'll have to excuse my ignorance here
> (having one of those days! :)
>
> In the example wide_table.java, you tell the table to write at x:50,
> y:650
>
>   table.writeSelectedRows(0, 5, 0, -1, 50, 650, cb);
>
> that's fine if you know your y value (in this case 650), but what
> happens if you don't?  I'll be writing other things to the doc before
> the table (headers, phrases, other tables) and these will vary in size
> from report to report.  Is there any way to determine the current ypos
> of a document (i.e. the point at which the next element added will
> start)?
>
>
> Thanks again,
> Brian
> =========================================
> See the example wide_table.java at itextpdf.sf.net. To do what you want
> you'll have to place the table at a precise position and you'll need
> PdfPTable.
> Best Regards,
>
> Paulo Soares
>
> ----- Original Message -----
>
> From: "Brian Hobbs" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 26, 2003 17:19
> Subject: [iText-questions] Is there any way to get the ypos where a
> table
> starts?
>
> > Hi There,
> >
> > I have some pretty large tables that I need to be able to split over
> > multiple pages (both horizontally & vertically). iText does the
> > vertical splitting fine & I know how to do the horizontal splitting -
> > i'm just going to print the extra columns after the rest of the table
> is
> > written to the document. The problem I've got is with the starting
> > point of the table.
> >
> > If I have a 20 colum table, columns 1-15 will fit on page 1, columns
> > 16-20 will then go on page 2. If the table starts halfway down the
> page
> > (so the first row of the table occurs at a distance of, say 15cm, from
> > the top of the page), I need the table on the second page to be at the
> > same height.
> >
> > Is there anyway to do this?
> >
> > Thanks in advance,
> > Brian Hobbs
>
>
>
> ________________________________________________________________________
> Want to chat instantly with your online friends?  Get the FREE Yahoo!
> Messenger http://uk.messenger.yahoo.com/
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to