I'll assume that you want a single line around a x,y point like
showTextAligned:

Phrase phrase = ..... // the text
float leading = 12; // value not important for single line
ColumnText ct = .....;

To align left:

ct.setSimpleColumn(phrase, x, -1000, 1000, y + leading, leading,
Element.ALIGN_LEFT);

To align right:

ct.setSimpleColumn(phrase, -1000, -1000, x, y + leading, leading,
Element.ALIGN_RIGHT);

To align center:

ct.setSimpleColumn(phrase, x - 1000, -1000, x + 1000, y + leading, leading,
Element.ALIGN_CENTER);

Best Regards,
Paulo Soares



> -----Original Message-----
> From: Jaladurgam, Ramana [SMTP:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 17:06
> To:   'Paulo Soares'; [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Using Columntext with X and Y
> 
> Hello Paulo,
>   I apologize if the question is not clear.
>   I have the X and Y coordinates.
>   I thought of using PdfContentByte.showTextAligned(...). But since using
> that method we cannot get the text underlined, bold etc. I changed to
> using
> ColumnText. But ColumnText asks for the rectangle boundary. 
> 
> Regards,
> Ramana.JV. 
> 
> -----Original Message-----
> From: Paulo Soares [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 23, 2003 10:22 AM
> To: 'Jaladurgam, Ramana'; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Using Columntext with X and Y
> 
> 
> You don't know where to write the text? Do you want me to guess?
> 
> Best Regards,
> Paulo Soares
> 
> > -----Original Message-----
> > From:       Jaladurgam, Ramana [SMTP:[EMAIL PROTECTED]
> > Sent:       Monday, June 23, 2003 16:04
> > To: [EMAIL PROTECTED]
> > Subject:    [iText-questions] Using Columntext with X and Y
> > 
> > Hello Group,
> >   I have only X and Y Coordinates of the starting point of text and I 
> > don't have the rectangle.
> >   How can I use ColumnText?
> > 
> > Regards,
> > Ramana.JV.
> > 
> > 
> > **********************************************************************
> > ****
> > ** 
> > This email may contain confidential material. 
> > If you were not an intended recipient, 
> > Please notify the sender and delete all copies. 
> > We may monitor email to and from our network. 
> >
> **************************************************************************
> > **
> > 
> > 
> > -------------------------------------------------------
> > 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
> 
> **************************************************************************
> ** 
> This email may contain confidential material. 
> If you were not an intended recipient, 
> Please notify the sender and delete all copies. 
> We may monitor email to and from our network. 
> **************************************************************************
> **


-------------------------------------------------------
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