在pdfptable中设置行之间的空间

Gir*_*iri 6 itextsharp

我正在使用iTextSharp来创建pdf.

是否可以在pdfptable中的行之间提供空间?

Bru*_*gie 4

您需要使用表事件来做到这一点。

Java示例: http: //itextpdf.com/examples/iia.php?id =95

C# 示例:http://kuujinbo.info/iTextInAction2Ed/index.aspx ?ch=Chapter05&ex=PressPreviews

请注意,我假设您希望单元格间距(而不是单元格填充)类似于您在此处看到的内容: http: //examples.itextpdf.com/results/part1/chapter05/press_previews.pdf