I am using flash in which takes font and leading is set to 2 , how can i
set same in pdf.
I am using paragraph class to add text , with set leading.
If i am using setleading(2,1) ,but it overflows out of pdf.
If i am using setleading(2,0.9) ,but still it takes less space than
actual.
what i need to change?
Please find my code below :
iTextSharp.text.Paragraph pg = new iTextSharp.text.Paragraph();
pg.FirstLineIndent = 0;
pg.SetLeading(2f, 0.9f);
if (objects[k].GetType().Name ==
"Paragraph")
{
iTextSharp.text.Phrase phText
= (iTextSharp.text.Phrase)objects[k];
string strContent =
phText.Content;
if
(string.IsNullOrEmpty(strContent))
{
Phrase ph = new Phrase("
");
ph.Font.Size = 10;
pg.Add(ph);
cell.AddElement(pg);
}
else
{
pg.Add(phText);
cell.AddElement(pg);
}
}
else
{
cell.AddElement((IElement)objects[k]);
}
thanks & regards ,
PURETECH INTERNET
-----------------------------------------------------------------------------------------
Vaibhav Shelar
Sr.Software Engineer
E [email protected]
T 91. 22. 2283 3158 | 91. 22. 2284 3026
-----------------------------------------------------------------------------------------
www.puretech.com | www.seopuretech.com
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/