月报导出--主页面字体大小,每行缩进
This commit is contained in:
+5
-4
@@ -736,9 +736,10 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
||||
content = "Content";
|
||||
}
|
||||
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);
|
||||
//主要内容
|
||||
WordUtil.exportWord(document, content, null, ParagraphAlignment.LEFT, 0, 12,
|
||||
false, true, "Blue Sky Noto Regular",null,null);
|
||||
//生成页脚
|
||||
@@ -780,7 +781,7 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
||||
}
|
||||
if(StringUtils.isNotBlank(twoTitle)){
|
||||
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++;
|
||||
}
|
||||
|
||||
@@ -794,7 +795,7 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
||||
}
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(reportTitle)){
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user