|
@@ -1304,9 +1304,9 @@ public class ReportIndexResultServiceImpl extends AbstractCrudService<ReportInde
|
|
paragraph24.setSpacingBefore(5f); // 设置段落上空白
|
|
paragraph24.setSpacingBefore(5f); // 设置段落上空白
|
|
paragraph24.setSpacingAfter(10f); // 设置段落下空白
|
|
paragraph24.setSpacingAfter(10f); // 设置段落下空白
|
|
|
|
|
|
- Paragraph paragraph25 = new Paragraph("五、具体问题清单", headfont);
|
|
|
|
- paragraph25.setAlignment(0); // 设置文字居中 0靠左 1,居中 2,靠右
|
|
|
|
- paragraph25.setFirstLineIndent(24); // 设置首行缩进
|
|
|
|
|
|
+ // Paragraph paragraph25 = new Paragraph("五、具体问题清单", headfont);
|
|
|
|
+ // paragraph25.setAlignment(0); // 设置文字居中 0靠左 1,居中 2,靠右
|
|
|
|
+ // paragraph25.setFirstLineIndent(24); // 设置首行缩进
|
|
|
|
|
|
// 直线
|
|
// 直线
|
|
// Paragraph p1 = new Paragraph();
|
|
// Paragraph p1 = new Paragraph();
|
|
@@ -1325,35 +1325,35 @@ public class ReportIndexResultServiceImpl extends AbstractCrudService<ReportInde
|
|
// gotoP.setReference("#top");
|
|
// gotoP.setReference("#top");
|
|
|
|
|
|
// 添加图片
|
|
// 添加图片
|
|
- Image image = Image.getInstance("https://img-blog.csdn.net/20180801174617455?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl8zNzg0ODcxMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70");
|
|
|
|
- image.setAlignment(Image.ALIGN_CENTER);
|
|
|
|
- image.scalePercent(40); // 依照比例缩放
|
|
|
|
|
|
+// Image image = Image.getInstance("https://img-blog.csdn.net/20180801174617455?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl8zNzg0ODcxMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70");
|
|
|
|
+// image.setAlignment(Image.ALIGN_CENTER);
|
|
|
|
+// image.scalePercent(40); // 依照比例缩放
|
|
|
|
|
|
// 表格
|
|
// 表格
|
|
- PdfPTable table = createTable(new float[]{40, 120, 120, 120, 80, 80});
|
|
|
|
- table.addCell(createCell("美好的一天", headfont, Element.ALIGN_LEFT, 6, false));
|
|
|
|
- table.addCell(createCell("早上9:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
- table.addCell(createCell("中午11:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
- table.addCell(createCell("中午13:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
- table.addCell(createCell("下午15:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
- table.addCell(createCell("下午17:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
- table.addCell(createCell("晚上19:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
- Integer totalQuantity = 0;
|
|
|
|
- for (int i = 0; i < 5; i++) {
|
|
|
|
- table.addCell(createCell("起床", textfont));
|
|
|
|
- table.addCell(createCell("吃午饭", textfont));
|
|
|
|
- table.addCell(createCell("午休", textfont));
|
|
|
|
- table.addCell(createCell("下午茶", textfont));
|
|
|
|
- table.addCell(createCell("回家", textfont));
|
|
|
|
- table.addCell(createCell("吃晚饭", textfont));
|
|
|
|
- totalQuantity++;
|
|
|
|
- }
|
|
|
|
- table.addCell(createCell("总计", keyfont));
|
|
|
|
- table.addCell(createCell("", textfont));
|
|
|
|
- table.addCell(createCell("", textfont));
|
|
|
|
- table.addCell(createCell("", textfont));
|
|
|
|
- table.addCell(createCell(String.valueOf(totalQuantity) + "件事", textfont));
|
|
|
|
- table.addCell(createCell("", textfont));
|
|
|
|
|
|
+// PdfPTable table = createTable(new float[]{40, 120, 120, 120, 80, 80});
|
|
|
|
+// table.addCell(createCell("美好的一天", headfont, Element.ALIGN_LEFT, 6, false));
|
|
|
|
+// table.addCell(createCell("早上9:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
+// table.addCell(createCell("中午11:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
+// table.addCell(createCell("中午13:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
+// table.addCell(createCell("下午15:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
+// table.addCell(createCell("下午17:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
+// table.addCell(createCell("晚上19:00", keyfont, Element.ALIGN_CENTER));
|
|
|
|
+// Integer totalQuantity = 0;
|
|
|
|
+// for (int i = 0; i < 5; i++) {
|
|
|
|
+// table.addCell(createCell("起床", textfont));
|
|
|
|
+// table.addCell(createCell("吃午饭", textfont));
|
|
|
|
+// table.addCell(createCell("午休", textfont));
|
|
|
|
+// table.addCell(createCell("下午茶", textfont));
|
|
|
|
+// table.addCell(createCell("回家", textfont));
|
|
|
|
+// table.addCell(createCell("吃晚饭", textfont));
|
|
|
|
+// totalQuantity++;
|
|
|
|
+// }
|
|
|
|
+// table.addCell(createCell("总计", keyfont));
|
|
|
|
+// table.addCell(createCell("", textfont));
|
|
|
|
+// table.addCell(createCell("", textfont));
|
|
|
|
+// table.addCell(createCell("", textfont));
|
|
|
|
+// table.addCell(createCell(String.valueOf(totalQuantity) + "件事", textfont));
|
|
|
|
+// table.addCell(createCell("", textfont));
|
|
|
|
|
|
document.add(paragraph);
|
|
document.add(paragraph);
|
|
document.add(paragraph1);
|
|
document.add(paragraph1);
|
|
@@ -1381,12 +1381,12 @@ public class ReportIndexResultServiceImpl extends AbstractCrudService<ReportInde
|
|
document.add(paragraph22);
|
|
document.add(paragraph22);
|
|
document.add(paragraph23);
|
|
document.add(paragraph23);
|
|
document.add(paragraph24);
|
|
document.add(paragraph24);
|
|
- document.add(paragraph25);
|
|
|
|
|
|
+ // document.add(paragraph25);
|
|
// document.add(anchor);
|
|
// document.add(anchor);
|
|
// document.add(p2);
|
|
// document.add(p2);
|
|
// document.add(gotoP);
|
|
// document.add(gotoP);
|
|
// document.add(p1);
|
|
// document.add(p1);
|
|
- document.add(table);
|
|
|
|
|
|
+// document.add(table);
|
|
// document.add(image);
|
|
// document.add(image);
|
|
}
|
|
}
|
|
|
|
|