主要内容--设置页边距, 内容预留空格
This commit is contained in:
+2
-2
@@ -832,7 +832,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,
|
||||||
2, 11, false, true, "Blue Sky Noto Regular","1","二级标题",null);
|
6, 11, false, true, "Blue Sky Noto Regular","1","二级标题",null);
|
||||||
twoCount++;
|
twoCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -846,7 +846,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,
|
||||||
4, 11, false, false, "Blue Sky Noto Regular","2","三级标题",null);
|
12, 11, false, false, "Blue Sky Noto Regular","2","三级标题",null);
|
||||||
reportCount++;
|
reportCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -420,8 +420,8 @@ public class WordUtil {
|
|||||||
pgSz.setH(BigInteger.valueOf(16838));
|
pgSz.setH(BigInteger.valueOf(16838));
|
||||||
CTPageMar pageMar = sectPr.getPgMar();
|
CTPageMar pageMar = sectPr.getPgMar();
|
||||||
if (pageMar == null) pageMar = sectPr.addNewPgMar();
|
if (pageMar == null) pageMar = sectPr.addNewPgMar();
|
||||||
pageMar.setLeft(BigInteger.valueOf(1797)); //左边距
|
pageMar.setLeft(BigInteger.valueOf(1083)); //左边距
|
||||||
pageMar.setRight(BigInteger.valueOf(1797));//右边距
|
pageMar.setRight(BigInteger.valueOf(1083));//右边距
|
||||||
pageMar.setTop(BigInteger.valueOf(1440)); //页眉高度
|
pageMar.setTop(BigInteger.valueOf(1440)); //页眉高度
|
||||||
pageMar.setBottom(BigInteger.valueOf(1440));//页脚高度
|
pageMar.setBottom(BigInteger.valueOf(1440));//页脚高度
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user