Create the Font only once and it won't take more memory than using a
string. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Ekta Ojha
> Sent: Friday, July 01, 2005 4:33 PM
> To: [email protected]
> Subject: [iText-questions] Fwd: Font size for entire table
> 
> Please reply to this...
> 
> --- Ekta Ojha <[EMAIL PROTECTED]> wrote:
> 
> > Date: Wed, 29 Jun 2005 15:21:24 -0700 (PDT)
> > From: Ekta Ojha <[EMAIL PROTECTED]>
> > Subject: Font size for entire table
> > To: [email protected]
> > 
> > Hello People,
> > I am building a table using PdfPTable and I need my
> > font size(may be 6) to be small for all the cells in
> > the table. 
> > Presently I am doing 'new' for every cell in the
> > table. The table might end up having many cells and
> > so
> > I may end up doing many  new statements. AS such I
> > have the fear that I may run out of memory. Can this
> > happen?
> > Is there a way I can set the font size of all table
> > cells to be 6. Here are parts of my code
> > 
> > PdfPTable datatable = new PdfPTable(17);
> > PdfPCell cell;
> > Paragraph p ;
> > 
> > I could have easily used
> > datatable.addCell("Myvalue") but because I need a
> > font
> > size of 6,I have to use 
> > 1. new Font
> > 2. new Paragraph
> > 3. new PdfPcell
> > 
> > p = new Paragraph("myvalue",new
> > Font(Font.HELVETICA,6)
> > cell = new PdfPCell(p);
> > datatable.addCell(cell);
> > 
> > Please help .
> > 
> > Thanks
> > Ekta
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > http://mail.yahoo.com 
> > 
> 
> 
> 
>               
> ____________________________________________________ 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football 
> http://football.fantasysports.yahoo.com
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to