如何使用iTextSharp更改PDF字体或段落的行高?
发布于 2010-04-16 01:48:29
行距在排版方面称为行距。如果可以使用行距,则可以使用Paragraph.Leading或Paragraph.LeadingMultiplier。请参阅http://itextsharp.sourceforge.net/tutorial/ch02.html#phrase
发布于 2011-04-01 21:47:53
paragraph.SetLeading(X,Y),其中X-是固定的前导,Y是多人游戏的前导。行距是两个文本基线之间的空格。最终行距的计算方法如下:行中的X+Y*max字体大小。
发布于 2010-04-14 00:01:50
不确定你的文本在什么上下文中,但我的文本在PdfCell中,我使用了MinimumHeight和PaddingTop:
cAddr = new PdfPCell(ptAddr);
cAddr.MinimumHeight = 101.0F;
cAddr.PaddingTop = 30;
https://stackoverflow.com/questions/2630430
复制相似问题