[GH-ISSUE #737] Conversion API add watermark #332

Closed
opened 2026-02-26 10:31:54 +03:00 by kerem · 2 comments
Owner

Originally created by @simon-sun on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/737

我把xlsx文档转换为pdf,转换时加上如下配置,文件可以正常转换,就是水印没加上去,我用的是社区版本的,是社区版本不支持使用java代码么?
参考的连接地址:https://api.onlyoffice.com/editors/conversionapi#watermark
具体代码:
"watermark": {
"align": 1,
"fill": [255, 0, 0],
"height": 100,
"margins": [ 10, 10, 10, 10 ],
"paragraphs": [
{
"align": 2,
"fill": [255, 0, 0],
"linespacing": 1,
"runs": [
{
"bold": true,
"italic": false,
"fill": [0, 0, 0],
"font-family": "Arial",
"font-size": 40,
"strikeout": false,
"text": "Watermark",
"underline": false
},
{
"text": "<%br%>"
}
]
}
],
"rotate": -45,
"transparent": 0.3,
"type": "rect",
"stroke-width": 1,
"stroke": [0, 0, 255],
"width": 100
}

Originally created by @simon-sun on GitHub (May 24, 2024). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/737 我把xlsx文档转换为pdf,转换时加上如下配置,文件可以正常转换,就是水印没加上去,我用的是社区版本的,是社区版本不支持使用java代码么? 参考的连接地址:https://api.onlyoffice.com/editors/conversionapi#watermark 具体代码: "watermark": { "align": 1, "fill": [255, 0, 0], "height": 100, "margins": [ 10, 10, 10, 10 ], "paragraphs": [ { "align": 2, "fill": [255, 0, 0], "linespacing": 1, "runs": [ { "bold": true, "italic": false, "fill": [0, 0, 0], "font-family": "Arial", "font-size": 40, "strikeout": false, "text": "Watermark", "underline": false }, { "text": "<%br%>" } ] } ], "rotate": -45, "transparent": 0.3, "type": "rect", "stroke-width": 1, "stroke": [0, 0, 255], "width": 100 }
kerem closed this issue 2026-02-26 10:31:54 +03:00
Author
Owner

@askonev commented on GitHub (Jun 5, 2024):

@simon-sun We kindly ask you to use English in our repository, as we are an international team and our issue will help other users in the future. Thank you in advance. As a solution, you can use google translate

<!-- gh-comment-id:2150191141 --> @askonev commented on GitHub (Jun 5, 2024): @simon-sun We kindly ask you to use English in our repository, as we are an international team and our issue will help other users in the future. Thank you in advance. As a solution, you can use google translate
Author
Owner

@Rita-Bubnova commented on GitHub (Jul 18, 2024):

This issue was closed due no response.

<!-- gh-comment-id:2236516197 --> @Rita-Bubnova commented on GitHub (Jul 18, 2024): This issue was closed due no response.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#332
No description provided.