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

This commit is contained in:
Liang Ding 2023-02-23 10:50:08 +08:00
parent c0c605b664
commit f003aac384
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 9 additions and 9 deletions

View file

@ -311,7 +311,7 @@ func exportHTML(c *gin.Context) {
}
}
func addPDFOutline(c *gin.Context) {
func processPDF(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
@ -326,7 +326,7 @@ func addPDFOutline(c *gin.Context) {
if nil != arg["merge"] {
merge = arg["merge"].(bool)
}
err := model.AddPDFOutline(id, path, merge)
err := model.ProcessPDF(id, path, merge)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()