下载带水印

This commit is contained in:
zhaokaiyao@91isoft.com
2021-12-14 20:28:03 +08:00
parent 02f0fb0cd7
commit 246a9c01c9
@@ -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);
}
}