This commit is contained in:
parent
824c23e86f
commit
bebe9ee876
|
|
@ -101,7 +101,7 @@ public class DocxUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在同一个 Run 后面插入图片
|
// 在同一个 Run 后面插入图片
|
||||||
runFooter.addPicture(is, XWPFDocument.PICTURE_TYPE_PNG, "gaizhang.png", Units.toEMU(80), Units.toEMU(80));
|
runFooter.addPicture(is, XWPFDocument.PICTURE_TYPE_PNG, "gaizhang.png", Units.toEMU(100), Units.toEMU(100));
|
||||||
is.close();
|
is.close();
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -241,7 +241,7 @@ public class DocxUtil {
|
||||||
|
|
||||||
InputStream is = DocxUtil.class.getClassLoader().getResourceAsStream("template/gaizhang.png");
|
InputStream is = DocxUtil.class.getClassLoader().getResourceAsStream("template/gaizhang.png");
|
||||||
if (is != null) {
|
if (is != null) {
|
||||||
runFooter.addPicture(is, XWPFDocument.PICTURE_TYPE_PNG, "gaizhang.png", Units.toEMU(80), Units.toEMU(80));
|
runFooter.addPicture(is, XWPFDocument.PICTURE_TYPE_PNG, "gaizhang.png", Units.toEMU(100), Units.toEMU(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
doc.write(bos);
|
doc.write(bos);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue