Support adding the watermark on export PDF https://github.com/siyuan-note/siyuan/issues/9961

This commit is contained in:
Daniel 2023-12-27 11:43:21 +08:00
parent efac191a82
commit 2ff2f1972e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 46 additions and 31 deletions

View file

@ -528,8 +528,8 @@ func processPDF(c *gin.Context) {
merge = arg["merge"].(bool)
}
removeAssets := arg["removeAssets"].(bool)
//watermark := arg["watermark"].(bool)
err := model.ProcessPDF(id, path, merge, removeAssets, true)
watermark := arg["watermark"].(bool)
err := model.ProcessPDF(id, path, merge, removeAssets, watermark)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()