【发布时间】:2014-02-28 11:41:17
【问题描述】:
我正在使用iTextSharp 在我的应用程序中创建 PDF。但是我必须重新创建一个表,我必须在其中设置一个非常小的列的大小。下面是显示我要设置列的大小的图片:
当其余的表格创建一切顺利时,我无法设置此宽度。
代码:
PdfPTable table = new PdfPTable(2);
table.WidthPercentage = 82.0f;
PdfPCell cell = new PdfPCell(new Phrase("Com a assinatura autógrafa, o signatário desta Auto-declaração garante ter cumprido estas condições:", fontetexto));
cell.PaddingBottom = 10f;
cell.PaddingTop = 10f;
cell.Colspan = 2;
cell.HorizontalAlignment = 1; //0=Left, 1=Centre, 2=Right
table.AddCell(cell);
table.AddCell("1. ");
table.AddCell("Os óleos e gorduras vegetais velhos fornecidos são biomassa conforme o Decreto de biomassa.");
【问题讨论】:
标签: c# asp.net-mvc asp.net-mvc-4 itextsharp