Use the below code and specify the font name, size and Style as per your
requirement, I think iText supports only 4 types of Fonts.
Table t = new Table (7, 5);
t.addCell (new Phrase (new Chunk ("sample text",
FontFactory.getFont (FontFactory.COURIER, 8, Font.NORMAL))));
____________________________________________________________
Thanks & Regards,
Srinivas. P
SoftwareEngineer(R&D)
Four Soft Limited,
Hyderabad - 500 081.
Tel: (+91)(040)23100600 Ext: 6159
Mobile: +91 9849848285
Eail: [EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno
Lowagie
Sent: Wednesday, May 17, 2006 5:14 PM
To: HINDI TLC
Cc: [email protected]
Subject: [iText-questions] Re: Table Font
HINDI TLC wrote:
> Hi there,
>
> I'm new to itextsharp.
You have used the wrong mail address:
use [email protected]
> I need to create a pdf document which contains a table (i'm using a
> PdfPTable) and is populated with data.
>
> I have successfully populated the table with the data.
With Paragraph objects, Phrases, Chunks, Anchors, etc...
> However, I need to reduce the font size used in the table.
>
> Any ideas on how do I do this?
Change the font and/or size in the Chunks, Phrases, Paragraphs,...
you are adding to the cell.
br,
Bruno
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
"The information contained in this communication is intended solely for the use
of the individual or entity to whom it is addressed and others authorized to
receive it. It may contain confidential or legally privileged information and
may not be disclosed to anyone else. If you are not the intended recipient you
are hereby notified that any disclosure, copying, distribution or taking any
action in reliance on the contents of this information is strictly prohibited
and may be unlawful. If you have received this communication in error, please
notify us immediately by responding to the sender of this email and then delete
it from your system. Four Soft is neither liable for the proper and complete
transmission of the information contained in this communication nor for any
delay in its receipt".
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions