mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
✨ Support adding the watermark on export PDF https://github.com/siyuan-note/siyuan/issues/9961
This commit is contained in:
parent
44060c6e0d
commit
ec0989c32f
9 changed files with 157 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue