Thanks paulo,
  This is okay with Center(Horizontal) and Middle(Vertical).
  Since this is a tweak kind, I couldn't figure out for other alignments
Left(H), Right(H) and Top(V) and Bottom(V). Could you please write the
formula for these.

Regards,
Ramana.JV. 

-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:55 AM
To: 'Jaladurgam, Ramana'; '[EMAIL PROTECTED]'
Subject: RE: [iText-questions] Vertical aligning with ColumnText


Example for alignment at (x,y):

PdfPTable t = new PdfPTable(1);
t.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
t.getDefaultCell().setVerticalAlignment(Element.ALIGN_MIDDLE);
t.getDefaultCell().setBorderWidth(0);
t.getDefaultCell().setFixedHeight(1000);
t.addCell(lPhrase);
t.setTotalWidth(1000);
t.writeSelectedRows(0, -1, x - 500, y + 500, mPdfContentByte);

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Jaladurgam, Ramana [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 17:17
> To:   'Paulo Soares'; '[EMAIL PROTECTED]'
> Subject:      RE: [iText-questions] Vertical aligning with ColumnText
> 
> Hello Paulo,
>   Sorry for persistent trouble.
>   I thought of clearly explaning the requirement.
>   I am actually required to vertically align a phrase at a point say 
> (100, 200). I am trying several options of leading and padding with 
> PdfPTable, but not getting the required alignment.
>   Please help.
> 
> Regards,
> Ramana.JV.
> 
> -----Original Message-----
> From: Jaladurgam, Ramana
> Sent: Wednesday, August 13, 2003 10:53 AM
> To: 'Paulo Soares'; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Vertical aligning with ColumnText
> 
> 
> I'm using the following code:
> 
>             PdfPTable lPdfPTable = new PdfPTable(1);
>  
> lPdfPTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT)
> ;
>  
> lPdfPTable.getDefaultCell().setVerticalAlignment(Element.ALIGN_TOP);
>             lPdfPTable.addCell(lPhrase);
>             PdfPTable.setTotalWidth(300);
>             lPdfPTable.writeSelectedRows(0, -1, mX, mY, 
> mPdfContentByte);
> 
> But, the text is in the cell is not vertically aligned at top. Am I 
> missing something here?
> 
> Regards,
> Ramana.JV.
> 
> -----Original Message-----
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 10:25 AM
> To: 'Jaladurgam, Ramana'; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Vertical aligning with ColumnText
> 
> 
> Use a PdfPTable.
> 
> Best Regards,
> Paulo Soares
> 
> > -----Original Message-----
> > From:       Jaladurgam, Ramana [SMTP:[EMAIL PROTECTED]
> > Sent:       Wednesday, August 13, 2003 15:41
> > To: [EMAIL PROTECTED]
> > Subject:    [iText-questions] Vertical aligning with ColumnText
> > 
> > Hello,
> >   I actually have a single line of text and want it to be vertically 
> > aligned(Center/bottom). I am using ColumnText. But, it appears like 
> > ColumnText won't align the text vertically.
> >   Any tweaks or ideas?
> > 
> > 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 sponsored by: Free pre-built ASP.NET sites 
> > including Data Reports, E-commerce, Portals, and Forums are 
> > available now. Download today and enter to win an XBOX or Visual 
> > Studio .NET. 
> > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_
> > 01/0
> > 1
> > _______________________________________________
> > 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 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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to