我该如何使用iTextSharp改变PDF字体或段落的行高?
排版中的行距称为行间距。如果您想要使用行距,请使用Paragraph.Leading或Paragraph.LeadingMultiplier。请参见http://itextsharp.sourceforge.net/tutorial/ch02.html#phrase
paragraph.SetLeading(X, Y) 其中 X 是固定的行距,Y 是行距倍数。 行距是两个文本基线之间的空间。 最终的行距值计算如下:X + Y * 该行中最大字体大小。
不确定您的文本所处的上下文,但我将我的文本放在PdfCell中,并使用了MinimumHeight和PaddingTop:
cAddr = new PdfPCell(ptAddr);
cAddr.MinimumHeight = 101.0F;
cAddr.PaddingTop = 30;