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
2010-04-13 16:01:49
+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
2010-04-15 17:48:29
Thanks. `paragraph.SetLeading(0.0f, 2.0f);` works perfectly.
FreshCode
2010-04-15 19:54:36