Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Export PDF and add watermarks no longer covered by images https://github.com/siyuan-note/siyuan/issues/10818

Daniel50faacd1291a
diff --git a/kernel/model/export.go b/kernel/model/export.go
index 38b39563f6..be8fd4a4ad 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -1057,6 +1057,7 @@ func processPDFWatermark(pdfCtx *pdfcpu.Context, watermark bool) {
return
}
+ wm.OnTop = true // Export PDF and add watermarks no longer covered by images https://github.com/siyuan-note/siyuan/issues/10818
err = pdfCtx.AddWatermarks(nil, wm)
if nil != err {
logging.LogErrorf("add watermark failed: %s", err)