下载带水印
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user