From fbbd4ff8056e1db2982f573e8931cda4bda5dea2 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 13 Sep 2024 10:37:16 +0800 Subject: [PATCH] 1 --- static/pdfjs/web/viewer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/pdfjs/web/viewer.js b/static/pdfjs/web/viewer.js index c7ea3730..bf2c94fd 100644 --- a/static/pdfjs/web/viewer.js +++ b/static/pdfjs/web/viewer.js @@ -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);