Thanks for your help.  I was able to use the PdfContentByte to center my
headers.  I haven't tried NO_BORDER yet but I do have a question about the
dots.  In my example:

abc............123
wxyz..........456

I thought of making it a PdfPTable, adding a cell for which I set noWrap to
true.  I'm assuming this means if the text in the row is too big for the
row, don't create a new line in the cell, just truncate the text.  That is
what I want.  I tried this (see code sample below) with no success.  I
guess noWrap means something else.  Is it just not possible to do what I
want?



                                                                                       
                                                        
                                                                                       
                                                        
                                                              To:       Lloyd 
Bergman/Towers [EMAIL PROTECTED], [EMAIL PROTECTED]  
                      Paulo Soares                            cc:       (bcc: Lloyd 
Bergman/Towers Perrin)                                     
                      <[EMAIL PROTECTED]>                   Subject:  RE: 
[iText-questions] Another Newbie                                   
                      Sent by:                                                         
                                                        
                      [EMAIL PROTECTED]                                                
                                         
                      ceforge.net                                                      
                                                        
                                                                                       
                                                        
                                                                                       
                                                        
                      06/24/2003 12:16 PM                                              
                                                        
                                                                                       
                                                        
                                                                                       
                                                        






> -----Original Message-----
> From:            Lloyd Bergman [SMTP:[EMAIL PROTECTED]
> Sent:            Tuesday, June 24, 2003 16:43
> To:        [EMAIL PROTECTED]
> Subject:         [iText-questions] Another Newbie
>
> For the past few days I've been using and learning iText and I think it's
> great.  However, there are some things I would like to do that I can't
> seem
> to figure out.  What I am trying to do now is to setup a tab like in
Word.
> For example:
>
> abc............123
> wxyz..........456
>
> where the dots are the tab.  It seems that iText doesn't have this kind
of
> tab but I could use columns.  The problem is that the number of dots
> varies
>
             It doesn't have any kind of tab...

> depending on the size of the text.  I don't know how would compute how
> many
> dots I would need per line.  What I would like to do is to use more than
> enough dots but the problem is that that causes the column to wrap.  Is
> there a way I can not have the column wrap and just loose the extra dots?
>
             You'll need to do it in a PdfContentByte.
BaseFont.getWidthPoint()
gives the char widths and after that it's a matter of arithmetic.

> Another question I have is how to turn off (or change) boardrers in a
> PdfPTable?
>
             Set the border width to 0 or to NO_BORDER.

> Also, I still can't figure out how to center my header?
>
             Use a page event instead of HeaderFooter.
             You have some examples in the tutorial and in
www.geocities.com/itextpdf.

             Best Regards,
             Paulo Soares


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