Commit 195955d8 by 李传峰

Merge remote-tracking branch 'remotes/origin/master' into 3.x

parents c6fed074 73b1ac8f
...@@ -39,7 +39,12 @@ public enum SendType { ...@@ -39,7 +39,12 @@ public enum SendType {
/** /**
* 通过公众号ID发送 * 通过公众号ID发送
*/ */
SEND_BY_WECHAT("SEND_BY_WECHAT"); SEND_BY_WECHAT("SEND_BY_WECHAT"),
/**
* 通过OpenId 和 OfficialId 发送
*/
SEND_BY_OPENID_OFFICIAL("SEND_BY_OPENID_OFFICIAL");
/** /**
* 值 * 值
......
...@@ -131,7 +131,7 @@ public class WordUtils { ...@@ -131,7 +131,7 @@ public class WordUtils {
width = Math.round(width * rate); width = Math.round(width * rate);
height = Math.round(height * rate); height = Math.round(height * rate);
document = new Document(new Rectangle(width, height)); document = new Document(new Rectangle(width, height));
Integer A4Width = 210; Integer A4Width = 595;
if (!A4Width.equals(width)) { if (!A4Width.equals(width)) {
document.setMargins(2,2,2, 2); document.setMargins(2,2,2, 2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment