caiyiling 2024-09-13 10:37:16 +08:00
parent 2b71341d4c
commit fbbd4ff805
1 changed files with 1 additions and 0 deletions

View File

@ -12378,6 +12378,7 @@ class PDFPageView {
c.style.fontSize = '24px'
c.style.fontWeight = '900'
c.style.color = "rgba(0, 191, 255, 0.1)";
c.style.whiteSpace = 'nowrap'
// c.innerText = text;//text为水印内容可以在viewer.html中传入也可以直接替换成固定的字符串如c.innerText = "这是一个水印";
c.innerText = `${obj.COMPANY}_${obj.userName}\n${new Date().format('yyyy-MM-dd')}`;
cover.appendChild(c);