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:23:37 +08:00
parent 44060c6e0d
commit ec0989c32f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
9 changed files with 157 additions and 8 deletions

View file

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