Watermarks in pdf files cannot display Chinese

Document Server version: 7.4
Type of installation of the Document Server (docker, deb/rpm, exe)
OS: linux
Browser version: edge, chrome

Hi, Watermarks in pdf files cannot display Chinese , which refer to screenshot. But doc file is fine. please let me know how to handle this problem.

Hi, can you add WeChat:jookoox
:handshake:

Hello @Jaxine
Please provide us with test sample of the file, where the situation reproduces. Also, please let us know how exactly you have converted original doc file to pdf format.

testing1.docx (18.8 KB)

Hi Alex,

Pls download testing1.docx, and then change the extension to .pdf because pdf file cannot be uploaded to here.

cannot search you via jookoox

BTW, One of the request is error , as below.

Hello @Jaxine

Pls download testing1.docx, and then change the extension to .pdf because pdf file cannot be uploaded to here.

Please upload the original file to any external storage and provide us with download link. I don’t see any watermarks at all in the provided earlier file. Additionally, please let us know the exact test scenario. Where did you create your test file and how did you add watermarks?

Hi @Alexandre
This is a pdf file generated by the scanner, please download it via url 文叔叔 - 传文件,找文叔叔(永不限速)
Btw, every pdf file I uploaded also doesn’t display Chinese words. But Doc, PPT, XSLX files can show Chinese words

The editor config is below:
let editorConfig = {
          "type": getDeviceType(),
          "document": {
              "fileType": type,
              "key": url.slice(url.lastIndexOf("/") + 1, url.lastIndexOf("?")),
              "title": fileName,
              "url": url,
              "permissions": {
                  "comment": false,
                  "download": false,
                  "edit": false,
                  "fillForms": false,
                  "print": true,
                  "chat": false
              }
          },
          "documentType": documentType,
          "width": "100%",
          "height": "100%",
          "editorConfig": {
              "lang": "zh-CN",
              "mode": "view",
              "user": {
                  "id": employeeCode,
                  "name": '测试000001'
              }
          },
      };

Hello @Jaxine

This is a pdf file generated by the scanner, please download it via url 文叔叔 - 传文件,找文叔叔(永不限速)

How exactly you have added watermarks to this file? I have to specify this because the original file on your link doesn’t have watermarks. We need to know complete usage scenario. Are you using your own self-written plugin to add watermark in pdf file or some kind of DocBuilder API methods?

Hi @Alexandre ,

No watermark was added to the original file. The watermark of pdf file was displayed in onlyoffice online preview.

I have sent relevant editort settings above.

And here is code.js:

Hello @Jaxine
Sorry for the late reply. I have tried to check out if there’s any issue with Chinese in the described scenario. In my test I used this plugin for watermark adding: ONLYOFFICE Api Documentation - Plugin examples
I just added your text and all things are OK:

Do I understand it right that you are using your own self-written plugin? If so, please compare them with each other.
Additionally, please check if the situation reproduces in different browsers.

Hi @Alexandre
No, I used the same plugins named “settingsll” as well, but the Chinese word cannot be displayed in Chrome, Edge. Do you know the reason ?

Hello @Jaxine
Please point me to this plugin (where did you get it?), we will check it out. So far it seems that the situation is related either to plugin or to used fonts.

Hi Alex @Alexandre

Sorry for the late response. I download the setting plugins from github https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/settings .

And I edit the code.js as snapshot.

code.js : Download URL: 文叔叔 - 传文件,找文叔叔(永不限速)

Hello @Jaxine

Do you still use version 7.4 of Document Server? If yes, please try updating your instance and then check the situation again.