【发布时间】:2013-03-07 15:32:39
【问题描述】:
我有一个表格,我试图将其从 pdf 文档的上边距缩小大约 20/30 浮点 (f)。我想稍微缩小一点的原因是因为我的 pdf 文档的边缘有一个矩形边框。
PdfPTable table = new PdfPTable(1);
table.SpacingBefore = 20f;
table.SpacingAfter = 20f;
table.TotalWidth = 700f;
table.LockedWidth = true;
table.SpacingAfter 工作得很好,但 table.SpacingBefore 不行,我的桌子只是坐在顶部边缘,根本不会留出空间/填充。
【问题讨论】:
标签: c# pdf itextsharp itext