Commit 79aa169e by 吴博

bug: [none] fixword

parent c8b68e59
......@@ -131,6 +131,10 @@ public class WordUtils {
width = Math.round(width * rate);
height = Math.round(height * rate);
document = new Document(new Rectangle(width, height));
Integer A4Width = 210;
if (!A4Width.equals(width)) {
document.setMargins(2,2,2, 2);
}
rtfWriter2 = RtfWriter2.getInstance(document, os);
document.open();
// 添加内容添加PDF实例中
......
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