Leading in PDF is the height of the font whereas in some other places is space 
between lines.

Paulo 

> -----Original Message-----
> From: Vaibhav Shelar [mailto:[email protected]] 
> Sent: Wednesday, October 07, 2009 10:10 AM
> To: [email protected]
> Subject: [iText-questions] Reg : Word spacing in paragraph
> 
> 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
> 
> 

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
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/

Reply via email to