|
@@ -243,11 +243,11 @@ public class CreatePrintPdfUtil {
|
|
document.add(blank);
|
|
document.add(blank);
|
|
|
|
|
|
// 基础信息表格
|
|
// 基础信息表格
|
|
- PdfPTable basicTable = PdfFillUtils.createTable(new float[]{30, 70});
|
|
|
|
|
|
+ PdfPTable basicTable = PdfFillUtils.createTable(new float[]{20, 80});
|
|
List<Map<String, String>> basicPlate = pdfPackageDto.getBasicPlate();
|
|
List<Map<String, String>> basicPlate = pdfPackageDto.getBasicPlate();
|
|
for (Map<String, String> stringMap : basicPlate) {
|
|
for (Map<String, String> stringMap : basicPlate) {
|
|
- basicTable.addCell(PdfFillUtils.createCell(stringMap.get("name") + ":", PdfFillUtils.textFont24, 50f, Element.ALIGN_RIGHT, 18f));
|
|
|
|
- basicTable.addCell(PdfFillUtils.createCell(stringMap.get("value"), PdfFillUtils.textFont24, 50f, Element.ALIGN_LEFT, 18f));
|
|
|
|
|
|
+ basicTable.addCell(PdfFillUtils.createCell(stringMap.get("name"), PdfFillUtils.textFont24, 50f, Element.ALIGN_JUSTIFIED_ALL, 0f));
|
|
|
|
+ basicTable.addCell(PdfFillUtils.createCell(": " + stringMap.get("value"), PdfFillUtils.textFont24, 50f, Element.ALIGN_LEFT, 0f));
|
|
}
|
|
}
|
|
document.add(basicTable);
|
|
document.add(basicTable);
|
|
document.add(blank);
|
|
document.add(blank);
|