月报导出--主页面字体大小,每行缩进

This commit is contained in:
zhn
2022-09-28 15:53:35 +08:00
parent 42dd0b698e
commit c2b90c7ff5
@@ -736,9 +736,10 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
content = "Content"; content = "Content";
} }
String moth = lawsMonthlyReportWriteEOS.get(0).getMonth().replaceAll("-", "") + ""; String moth = lawsMonthlyReportWriteEOS.get(0).getMonth().replaceAll("-", "") + "";
//单独设置每页右侧的时间 //标题
WordUtil.exportWord(document, titleCN, null, ParagraphAlignment.CENTER, 0, 18, WordUtil.exportWord(document, titleCN, null, ParagraphAlignment.CENTER, 0, 14,
false, false, "Blue Sky Noto Regular",null,null); false, false, "Blue Sky Noto Regular",null,null);
//主要内容
WordUtil.exportWord(document, content, null, ParagraphAlignment.LEFT, 0, 12, WordUtil.exportWord(document, content, null, ParagraphAlignment.LEFT, 0, 12,
false, true, "Blue Sky Noto Regular",null,null); false, true, "Blue Sky Noto Regular",null,null);
//生成页脚 //生成页脚
@@ -780,7 +781,7 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
} }
if(StringUtils.isNotBlank(twoTitle)){ if(StringUtils.isNotBlank(twoTitle)){
WordUtil.exportWord(document, twoNumber+" "+twoTitle, null, ParagraphAlignment.LEFT, WordUtil.exportWord(document, twoNumber+" "+twoTitle, null, ParagraphAlignment.LEFT,
0, 12, false, true, "Blue Sky Noto Regular","1","二级标题"); 2, 12, false, true, "Blue Sky Noto Regular","1","二级标题");
twoCount++; twoCount++;
} }
@@ -794,7 +795,7 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
} }
if(org.apache.commons.lang3.StringUtils.isNotBlank(reportTitle)){ if(org.apache.commons.lang3.StringUtils.isNotBlank(reportTitle)){
WordUtil.exportWord(document, reportCount+". "+reportTitle, null, ParagraphAlignment.LEFT, WordUtil.exportWord(document, reportCount+". "+reportTitle, null, ParagraphAlignment.LEFT,
0, 12, false, false, "Blue Sky Noto Regular","2","三级标题"); 4, 12, false, false, "Blue Sky Noto Regular","2","三级标题");
reportCount++; reportCount++;
} }
} }