Hi,
Thanks for replying.
I am rendering the reports to PDF files for that i am getting the
collection(includes every item like text,picture...).
And the font is of type 'System.Drawing.Font'. So at first i need to convert
this font to iTextSharp.Text.Font and then need to calculate the BaseFont.
In which case i need to follow the Steps:
**************************************************************************************************
font = iTextSharp.text.FontFactory.GetFont(renderedStringInfo.Font.Name,
renderedStringInfo.Font.Size, Convert.ToInt32(renderedStringInfo.Font.Style),
iTextSharp.text.Color.BLACK); //Step1:Converting the font to
iTextSharp.text.Font type
baseFont = font.GetCalculatedBaseFont(false);
//Step2: Getting the relevant BaseFont.
pdfContentByte.SetFontAndSize(baseFont,
renderedStringInfo.Font.Size); //Step3: I am assigning the basefont
and size to pdfContentByte
**************************************************************************************************
With my problem i dont think that i can able to follow the
basefont.CreateFont() method which you suggested earlier.
So please suggest me how to solve my problem.
Once again thanks for your valuable reply.
Thanks in advance,
T.Venkat.
-------------------------------------------------------------------------
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
Buy the iText book: http://itext.ugent.be/itext-in-action/