|
@@ -129,10 +129,10 @@ public class CreatePrintPdfUtil {
|
|
|
basicTable.addCell(PdfFillUtils.createTitleCell(pdfFillDto.getTitle(), PdfFillUtils.textFont16, 60f, 15, 1, 6));
|
|
|
List<Map<String, String>> basicPlate = pdfFillDto.getBasicPlate();
|
|
|
for (Map<String, String> stringMap : basicPlate) {
|
|
|
- basicTable.addCell(PdfFillUtils.createCell(stringMap.get("name") + ":" + stringMap.get("value"), PdfFillUtils.textFont11, null, Element.ALIGN_LEFT, 0, 1, 3));
|
|
|
+ basicTable.addCell(PdfFillUtils.createCell(stringMap.get("name") + ":" + stringMap.get("value"), PdfFillUtils.textFont10, null, Element.ALIGN_LEFT, 0, 1, 3));
|
|
|
}
|
|
|
if (basicPlate.size() % 2 > 0) {
|
|
|
- basicTable.addCell(PdfFillUtils.createCell(" ", PdfFillUtils.textFont11, null, Element.ALIGN_LEFT, 0, 1, 3));
|
|
|
+ basicTable.addCell(PdfFillUtils.createCell(" ", PdfFillUtils.textFont10, null, Element.ALIGN_LEFT, 0, 1, 3));
|
|
|
}
|
|
|
document.add(basicTable);
|
|
|
|
|
@@ -157,7 +157,7 @@ public class CreatePrintPdfUtil {
|
|
|
if ("座位号".equals(value)) {
|
|
|
value = "座号";
|
|
|
}
|
|
|
- studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont11, BaseColor.LIGHT_GRAY, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
+ studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont9, BaseColor.LIGHT_GRAY, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
j++;
|
|
|
}
|
|
|
}
|
|
@@ -171,19 +171,19 @@ public class CreatePrintPdfUtil {
|
|
|
Map<String, String> stringMap1 = studentPlate.get(2 * i);
|
|
|
for (int j = 0; j < stringMap1.size(); j++) {
|
|
|
String value = stringMap1.get(headKeys[j]);
|
|
|
- studentTable.addCell(PdfFillUtils.createCell(value, chooseFont(value, columnWidth[j]), null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
+ studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont9, null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
}
|
|
|
|
|
|
if (studentPlateCount % 2 > 0 && 2 * i + 1 == studentPlate.size()) {
|
|
|
for (int i1 = 0; i1 < columnCount; i1++) {
|
|
|
- studentTable.addCell(PdfFillUtils.createCell("", PdfFillUtils.textFont11, null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
+ studentTable.addCell(PdfFillUtils.createCell("", PdfFillUtils.textFont9, null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
}
|
|
|
continue;
|
|
|
}
|
|
|
Map<String, String> stringMap2 = studentPlate.get(2 * i + 1);
|
|
|
for (int j = 0; j < stringMap2.size(); j++) {
|
|
|
String value = stringMap2.get(headKeys[j + columnCount]);
|
|
|
- studentTable.addCell(PdfFillUtils.createCell(value, chooseFont(value, columnWidth[j + columnCount]), null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
+ studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont9, null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -197,7 +197,7 @@ public class CreatePrintPdfUtil {
|
|
|
if ("座位号".equals(value)) {
|
|
|
value = "座号";
|
|
|
}
|
|
|
- studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont11, BaseColor.LIGHT_GRAY, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
+ studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont9, BaseColor.LIGHT_GRAY, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
k++;
|
|
|
}
|
|
|
|
|
@@ -209,7 +209,7 @@ public class CreatePrintPdfUtil {
|
|
|
Map<String, String> stringMap1 = studentPlate.get(i);
|
|
|
for (int j = 0; j < stringMap1.size(); j++) {
|
|
|
String value = stringMap1.get(headKeys[j]);
|
|
|
- studentTable.addCell(PdfFillUtils.createCell(value, chooseFont(value, columnWidth[j]), null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
+ studentTable.addCell(PdfFillUtils.createCell(value, PdfFillUtils.textFont9, null, Element.ALIGN_CENTER, 0, 1, 1));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -502,7 +502,7 @@ public class CreatePrintPdfUtil {
|
|
|
public static void main(String[] args) {
|
|
|
PdfSignDto pdfFillDto = new PdfSignDto();
|
|
|
pdfFillDto.setTitle("测试签到表");
|
|
|
- pdfFillDto.setPackageNumber("200032324");
|
|
|
+ pdfFillDto.setPackageNumber("1000004");
|
|
|
|
|
|
// 基础信息
|
|
|
List<Map<String, String>> basicPlate = new ArrayList<>();
|
|
@@ -575,7 +575,7 @@ public class CreatePrintPdfUtil {
|
|
|
|
|
|
PdfPackageDto pdfPackageDto = new PdfPackageDto();
|
|
|
pdfPackageDto.setTitle("测试卷袋贴");
|
|
|
- pdfPackageDto.setPackageNumber("20000213134");
|
|
|
+ pdfPackageDto.setPackageNumber("1000004");
|
|
|
|
|
|
// 基础信息
|
|
|
List<Map<String, String>> basicPlate1 = new ArrayList<>();
|