gpdf
  • 文档
  • 博客
全部文章

# tutorial

标签为「tutorial」的文章

2026年4月17日·gpdf team

如何在 gpdf 中使用 IPAex 哥特体(IPAex Gothic)?

用 gpdf.WithFont 注册 ipaexg.ttf。IPAex 只提供 Regular 一个字重,粗体需要合成或与 Mincho 配对。

recipecjktutorial
2026年4月16日·gpdf team

gpdf 的 12 列网格是怎么工作的?

gpdf 的 12 列网格用 r.Col(span, fn) 接收 1–12 的整数。列宽为 span/12 的比例,没有断点、没有槽宽间距,为 PDF 固定宽度设计。

recipetutorialtemplates
2026年4月16日·gpdf team

用 Go 生成日文 PDF 的 2026 权威指南

用 Go 生成日文 PDF 的完整流程。无 CGO、无 Chromium、无豆腐字。涵盖字体、子集化、混合排版、纵排。

tutorialcjktroubleshooting
2026年4月15日·gpdf team

如何在 gpdf 中嵌入日文字体?

将 TTF 字节传给 gpdf.WithFont 即可。自动子集化嵌入、无需 CGO,用 Go 生成日文 PDF 的最短路径。

recipecjktutorial
2026年4月15日·gpdf team

如何在 gpdf 中使用 Noto Sans JP?

用 gpdf.WithFont 注册 static 版 NotoSansJP-Regular.ttf,不要用 variable font。gpdf 会把 17,000 个字形子集化到每份 PDF 不到 40 KB。

recipecjktutorial
2026年4月14日·gpdf team

gofpdf 已归档:迁移到 gpdf 的完整指南

gofpdf 于 2021 年归档,后继 go-pdf/fpdf 也在 2025 年停止。纯 Go、零依赖、原生 CJK 的 gpdf 迁移指南。

migrationcomparisontutorial
功能文档博客
gpdf

© 2026 gpdf. All rights reserved.