views:

867

answers:

2

How can I change the line-height of a PDF font or paragraph using iTextSharp?

A: 

Not sure in what context your text is in, but I have mine in a PdfCell and I used MinimumHeight and PaddingTop:

cAddr = new PdfPCell(ptAddr);
cAddr.MinimumHeight = 101.0F;
cAddr.PaddingTop = 30;
Steve
+2  A: 

Line spacing in terms of typography is called leading. If you can use line spacing, you can use Paragraph.Leading or Paragraph.LeadingMultiplier. See http://itextsharp.sourceforge.net/tutorial/ch02.html#phrase

Mitch
Thanks. `paragraph.SetLeading(0.0f, 2.0f);` works perfectly.
FreshCode