|
|
@@ -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.
|