diff --git a/adc-da-base/src/main/java/com/adc/da/util/WaterMarkUtil.java b/adc-da-base/src/main/java/com/adc/da/util/WaterMarkUtil.java index 34575906..e28415b7 100644 --- a/adc-da-base/src/main/java/com/adc/da/util/WaterMarkUtil.java +++ b/adc-da-base/src/main/java/com/adc/da/util/WaterMarkUtil.java @@ -53,14 +53,14 @@ public class WaterMarkUtil { under.setGState(gs); under.restoreState(); under.beginText(); - under.setFontAndSize(base, 50); + under.setFontAndSize(base, 30); under.setTextMatrix(30, 30); under.setColorFill(BaseColor.LIGHT_GRAY); - for (int y = 0; y < 5; y++) { - for (int x = 0; x < 10; x++) { - // 水印文字成45度角倾斜 + for (int y = 0; y < 50; y++) { + for (int x = 0; x < 50; x++) { + // 水印文字成45度角倾斜 x位置 y位置 角度 under.showTextAligned(Element.ALIGN_LEFT - , waterMarkName, 100 + 300 * x, 300 * y, 40); + , waterMarkName, 40 + 120 * x, 100 * y, 40); } }