That's what is done inside for the strings.
----- Original Message -----
From: "Ekta Ojha" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>;
<[email protected]>
Sent: Friday, July 01, 2005 5:50 PM
Subject: RE: [iText-questions] Fwd: Font size for entire table
> Thank you so much for a quick reply.
> I will create the Font just once but it seems that I
> still have to do these two steps(new Paragraph and new
> Cell) for every cell. Can this be optimized more
> because I still feel that there can be memory issues.
> Please correct me if am wrong and also I am sorry if I
> am not able to do a good explore on your API.
>
> Font myfont = new Font(Font.HELVETICA,6); // do once
> // do these three steps for every cell.
> // every cell will have a different myvalue.
> 1. p = new Paragraph("myvalue",myfont);
> 2. cell = new PdfPCell(p);
> 3. datatable.addCell(cell);
>
>
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
>
> > 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
> >
>
>
>
>
>
> __________________________________
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
-------------------------------------------------------
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