Skip to content

Improve export PDF watermark font #14693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
88250 opened this issue Apr 24, 2025 · 1 comment
Closed

Improve export PDF watermark font #14693

88250 opened this issue Apr 24, 2025 · 1 comment
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Apr 24, 2025

https://ld246.com/article/1745485692508

@88250 88250 self-assigned this Apr 24, 2025
@88250 88250 added this to the 3.1.29 milestone Apr 24, 2025
88250 added a commit to 88250/pdfcpu that referenced this issue Apr 24, 2025

Verified

This commit was signed with the committer’s verified signature.
@88250
Copy link
Member Author

88250 commented Apr 24, 2025

这个问题如果要完全支持的话开发工作量有点大,v3.1.29 发布后实现半自动:

  1. 下载 pdfcpu
  2. 通过 pdfcpu fonts install 命令手动安装字体,比如 pdfcpu fonts install ./simkai.ttf,安装好以后在 pdfcpu 配置路径下找到安装好的字体(安装命令执行完以后会打印配置路径),比如楷体:KaiTi.gob
  3. 将其拷贝到思源的配置路径下 C:\Users\用户名\.config\siyuan\fonts\KaiTi.gob
  4. 在 思源 - 设置 - 导出 - 导出 PDF 水印 - 水印位置、大小和样式等 中指定 fontname: KaiTi

88250 added a commit that referenced this issue Apr 24, 2025

Verified

This commit was signed with the committer’s verified signature.
@88250 88250 closed this as completed Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant