🎨 导出 PDF 时支持将资源文件作为附件嵌入 https://github.com/siyuan-note/siyuan/issues/7414

This commit is contained in:
Liang Ding 2023-02-23 11:18:05 +08:00
parent f003aac384
commit a576708916
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 54 additions and 34 deletions

View file

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