【发布时间】:2018-03-20 15:08:06
【问题描述】:
我有如下固定列宽创建的下表,
Table headerTable = new Table(new float[]{5,5,5});
headerTable.setWidthPercent(100);
headerTable.addCell(new Cell().add(new Paragraph("Student Name : Michel John(xxxx-xxx-xxx-xxx)")).setFontSize(10).setTextAlignment(TextAlignment.LEFT));
headerTable.addCell(new Cell().add(new Paragraph("Admission Date : 2012-05-01")).setFontSize(10).setTextAlignment(TextAlignment.CENTER));
headerTable.addCell(new Cell().add(new Paragraph("Current Standard : Eigth Standard - 'B' Section")).setFontSize(10).setTextAlignment(TextAlignment.RIGHT));
我在那个代码 sn-p 中遗漏了什么吗?
【问题讨论】: