主要内容--设置页边距, 内容预留空格

This commit is contained in:
zhn
2022-10-27 15:06:16 +08:00
parent 73f67a1d3b
commit 5701e0e59f
2 changed files with 4 additions and 4 deletions
@@ -832,7 +832,7 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
}
if(StringUtils.isNotBlank(twoTitle)){
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++;
}
@@ -846,7 +846,7 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(reportTitle)){
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++;
}
}
@@ -420,8 +420,8 @@ public class WordUtil {
pgSz.setH(BigInteger.valueOf(16838));
CTPageMar pageMar = sectPr.getPgMar();
if (pageMar == null) pageMar = sectPr.addNewPgMar();
pageMar.setLeft(BigInteger.valueOf(1797)); //左边距
pageMar.setRight(BigInteger.valueOf(1797));//右边距
pageMar.setLeft(BigInteger.valueOf(1083)); //左边距
pageMar.setRight(BigInteger.valueOf(1083));//右边距
pageMar.setTop(BigInteger.valueOf(1440)); //页眉高度
pageMar.setBottom(BigInteger.valueOf(1440));//页脚高度