There are several ways to do it:

- a table with two columns

- two ColumnText on top of each other

- if using Document.add(Paragraph) two calls with the second call having a
negative leading to get the line on top of the first

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Michael Niedermair [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, June 18, 2003 19:53
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] textalignment a la tex \hfill
> 
> Hi!
> 
> Can i place a text in one line on the left side and another text on the 
> right side in a simple way?
> 
> ************************************
> left                           right
> 
> "left\hfill right" in TeX
> 
> One way is to calculate the space between left and right, but is there 
> another simple way?
> 
> left + space(linewidth - width(left) - width(right)) + right
> 
> for example:
> Chunk c1 = new Chunk("left ");
> Chunk c2 = new Chunk("right");
> 
> Paragraph p = new Paragraph()
> p.add(c1);
> p.add(c2);
> p.add(Chunk.NEWLINE);
> p.setAlignment(Paragraph.ALIGN_STRETCH);
> 
> ...
> 
> By
> Michael
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to