2
1
yuedefeng 6 жил өмнө
parent
commit
8fda2cfe41

+ 2 - 2
src/main/java/com/common/workflow/service/util/Word2Pdf.java

@@ -107,9 +107,9 @@ public class Word2Pdf {
         Shape watermark = new Shape(doc, ShapeType.TEXT_PLAIN_TEXT);
         // Set up the text of the watermark.
         watermark.getTextPath().setText(watermarkText);
-        watermark.getTextPath().setFontFamily("Arial");
+        watermark.getTextPath().setFontFamily("宋体");
         watermark.setWidth(500);
-        watermark.setHeight(15);
+        watermark.setHeight(30);
         // Text will be directed from the bottom-left to the top-right corner.
         watermark.setRotation(-40);
         // Remove the following two lines if you need a solid black text.