<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja-JP">
  <title>gpdf ブログ</title>
  <subtitle>リリースノート、レンダラの内部解説、コミュニティの活用事例。gpdf プロジェクトのブログ。</subtitle>
  <link href="https://gpdf.dev/ja/rss.xml" rel="self" type="application/atom+xml" />
  <link href="https://gpdf.dev/ja/blog" rel="alternate" type="text/html" />
  <id>https://gpdf.dev/ja/rss.xml</id>
  <updated>2026-09-02T00:00:00.000Z</updated>
  <generator uri="https://gpdf.dev">gpdf-cloud</generator>
  <entry>
    <title>Col を行の右端に寄せるには?</title>
    <link href="https://gpdf.dev/ja/blog/align-column-right-edge" />
    <id>https://gpdf.dev/ja/blog/align-column-right-edge</id>
    <updated>2026-09-02T00:00:00.000Z</updated>
    <published>2026-09-02T00:00:00.000Z</published>
    <summary>空の Col で押し出して列を右端に置き、中のテキストは template.AlignRight() で右揃えにする。この 2 つは別物で、大抵は両方必要です。</summary>
    <author>
      <name>Taiki Noda</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
    <category term="templates" />
  </entry>
  <entry>
    <title>Go の PDF にページ番号とヘッダー・フッターをちゃんと入れる</title>
    <link href="https://gpdf.dev/ja/blog/page-numbers-headers-footers" />
    <id>https://gpdf.dev/ja/blog/page-numbers-headers-footers</id>
    <updated>2026-05-19T00:00:00.000Z</updated>
    <published>2026-05-19T00:00:00.000Z</published>
    <summary>gpdf でヘッダー、フッター、『Page X of Y』を Go PDF に入れる方法。ビルダの 2 メソッドと、ページ総数を自動で埋める 2 段階パスの仕組みを解説。</summary>
    <author>
      <name>gpdf team</name>
      <uri>https://gpdf.dev</uri>
    </author>
    <category term="tutorial" />
    <category term="internals" />
  </entry>
  <entry>
    <title>gpdf vs wkhtmltopdf vs Chromium — Go の PDF 生成 2026</title>
    <link href="https://gpdf.dev/ja/blog/gpdf-vs-wkhtmltopdf-vs-chromium" />
    <id>https://gpdf.dev/ja/blog/gpdf-vs-wkhtmltopdf-vs-chromium</id>
    <updated>2026-05-18T00:00:00.000Z</updated>
    <published>2026-05-18T00:00:00.000Z</published>
    <summary>wkhtmltopdf はアーカイブ済み。Chromium は 1 リクエスト 170 MB。gpdf は 13 µs/ページ、ブラウザ不要。2026 年の正直な比較。</summary>
    <author>
      <name>Taiki Noda</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="comparison" />
    <category term="benchmark" />
    <category term="migration" />
  </entry>
  <entry>
    <title>Col の中に Row をネストする方法は?</title>
    <link href="https://gpdf.dev/ja/blog/nest-row-in-col" />
    <id>https://gpdf.dev/ja/blog/nest-row-in-col</id>
    <updated>2026-05-16T00:00:00.000Z</updated>
    <published>2026-05-16T00:00:00.000Z</published>
    <summary>できません。gpdf の ColBuilder に Row メソッドはなく、12 カラムグリッドは意図的にフラットです。代わりに使う 3 つのイディオムを示します。</summary>
    <author>
      <name>Taiki Noda</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
    <category term="templates" />
  </entry>
  <entry>
    <title>テーブルを複数ページにまたがって出力するには?</title>
    <link href="https://gpdf.dev/ja/blog/multi-page-table" />
    <id>https://gpdf.dev/ja/blog/multi-page-table</id>
    <updated>2026-05-12T00:00:00.000Z</updated>
    <published>2026-05-12T00:00:00.000Z</published>
    <summary>何もしなくていい。1 ページに収まらない行数のテーブルを渡せば、gpdf がボディを自動で改ページし、各ページの先頭にヘッダーを繰り返す。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
    <category term="templates" />
  </entry>
  <entry>
    <title>gpdf で 1 つの段落に 2 つのフォントを混ぜる方法</title>
    <link href="https://gpdf.dev/ja/blog/mix-two-fonts-in-paragraph" />
    <id>https://gpdf.dev/ja/blog/mix-two-fonts-in-paragraph</id>
    <updated>2026-05-11T00:00:00.000Z</updated>
    <published>2026-05-11T00:00:00.000Z</published>
    <summary>gpdf で 1 段落に複数フォントを混ぜるには c.RichText を使い、各 Span に template.FontFamily を指定する。c.Text は文字列全体に 1 書体しか当てられない。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
    <category term="cjk" />
  </entry>
  <entry>
    <title>Go で PDF テーブルを描く — 列幅・縞模様・ページ分割</title>
    <link href="https://gpdf.dev/ja/blog/tables-in-go-pdfs" />
    <id>https://gpdf.dev/ja/blog/tables-in-go-pdfs</id>
    <updated>2026-05-07T00:00:00.000Z</updated>
    <published>2026-05-07T00:00:00.000Z</published>
    <summary>Go の PDF でテーブルを描くのは事故りやすい。gpdf は列幅・縞模様・ヘッダー繰り返しを Table 呼び出し 1 つに圧縮する。API の全貌とトレードオフ。</summary>
    <author>
      <name>Taiki Noda</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="tutorial" />
    <category term="templates" />
    <category term="comparison" />
  </entry>
  <entry>
    <title>signintech/gopdf から gpdf へ — 座標計算が消える</title>
    <link href="https://gpdf.dev/ja/blog/signintech-gopdf-migration" />
    <id>https://gpdf.dev/ja/blog/signintech-gopdf-migration</id>
    <updated>2026-05-06T00:00:00.000Z</updated>
    <published>2026-05-06T00:00:00.000Z</published>
    <summary>signintech/gopdf は速いが、セル・線・ヘッダ全てが (x, y) の計算式。gpdf 移行で座標計算がほぼ消える流れを API 対応表とコードで示す。</summary>
    <author>
      <name>Taiki Noda</name>
      <uri>https://nadai.dev/about</uri>
    </author>
    <category term="migration" />
    <category term="comparison" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf で画像を等比でカラム幅に収めるには?</title>
    <link href="https://gpdf.dev/ja/blog/scale-image-fit-column" />
    <id>https://gpdf.dev/ja/blog/scale-image-fit-column</id>
    <updated>2026-05-05T00:00:00.000Z</updated>
    <published>2026-05-05T00:00:00.000Z</published>
    <summary>c.Image にバイト列を渡すだけ。gpdf はデフォルトでカラム幅に等比縮小する。明示したいときだけ FitWidth / FitHeight を使う。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf でテーブルに縞模様(ゼブラ)の行を入れるには?</title>
    <link href="https://gpdf.dev/ja/blog/zebra-striped-table-rows" />
    <id>https://gpdf.dev/ja/blog/zebra-striped-table-rows</id>
    <updated>2026-05-04T00:00:00.000Z</updated>
    <published>2026-05-04T00:00:00.000Z</published>
    <summary>template.TableStripe を渡すだけ。gpdf が偶数行に背景色を塗ってくれる。行ループも手動スタイル指定も不要。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
    <category term="templates" />
  </entry>
  <entry>
    <title>gpdf にカスタム TrueType フォントを追加するには？</title>
    <link href="https://gpdf.dev/ja/blog/add-custom-truetype-font" />
    <id>https://gpdf.dev/ja/blog/add-custom-truetype-font</id>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <published>2026-04-30T00:00:00.000Z</published>
    <summary>TTF をバイト列で読み込んで gpdf.WithFont でファミリ名を登録する。Inter からアイコンフォントまで、どんな TrueType でも同じ手順で動く。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>unipdf の AGPL/商用ライセンスから gpdf へ移行する</title>
    <link href="https://gpdf.dev/ja/blog/unidoc-migration" />
    <id>https://gpdf.dev/ja/blog/unidoc-migration</id>
    <updated>2026-04-29T00:00:00.000Z</updated>
    <published>2026-04-29T00:00:00.000Z</published>
    <summary>unidoc/unipdf は AGPL v3 もしくは開発者ごとの商用ライセンス。MIT・ゼロ依存・ライセンスキー不要の gpdf への移行ガイド。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="migration" />
    <category term="comparison" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>Bootstrap 流の発想を PDF へ: gpdf の 12 カラムグリッド</title>
    <link href="https://gpdf.dev/ja/blog/bootstrap-grid-thinking-for-pdf" />
    <id>https://gpdf.dev/ja/blog/bootstrap-grid-thinking-for-pdf</id>
    <updated>2026-04-29T00:00:00.000Z</updated>
    <published>2026-04-29T00:00:00.000Z</published>
    <summary>gpdf は PDF レイアウトに Bootstrap 由来の 12 カラムグリッドを採用した。breakpoint や gutter は捨て、予測可能性を優先した設計判断を解説する。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="internals" />
    <category term="templates" />
    <category term="comparison" />
  </entry>
  <entry>
    <title>gpdf のテーブルで列幅を指定する方法</title>
    <link href="https://gpdf.dev/ja/blog/table-column-widths" />
    <id>https://gpdf.dev/ja/blog/table-column-widths</id>
    <updated>2026-04-28T00:00:00.000Z</updated>
    <published>2026-04-28T00:00:00.000Z</published>
    <summary>c.Table に template.ColumnWidths(...) を渡す。値は親 Col 幅に対するパーセンテージ。合計 100 で全幅、末尾を省くと残りが自動分配される。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf で透過 PNG を埋め込む方法</title>
    <link href="https://gpdf.dev/ja/blog/embed-png-transparency" />
    <id>https://gpdf.dev/ja/blog/embed-png-transparency</id>
    <updated>2026-04-28T00:00:00.000Z</updated>
    <published>2026-04-28T00:00:00.000Z</published>
    <summary>PNG のバイト列を c.Image にそのまま渡す。gpdf がアルファチャンネルを PDF の SMask に変換し、透過部分はそのまま描画される。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf で Bold と Italic を同時に指定する方法</title>
    <link href="https://gpdf.dev/ja/blog/bold-italic-together" />
    <id>https://gpdf.dev/ja/blog/bold-italic-together</id>
    <updated>2026-04-23T00:00:00.000Z</updated>
    <published>2026-04-23T00:00:00.000Z</published>
    <summary>template.Bold() と template.Italic() を同じ span に渡すだけ。ただし TrueType フォントは 4 バリアント全部を登録しないと BoldItalic のルックアップが base family に静かにフォールバックする。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>Go で請求書 PDF を 50 行以下で作る</title>
    <link href="https://gpdf.dev/ja/blog/invoice-pdf-go-under-50-lines" />
    <id>https://gpdf.dev/ja/blog/invoice-pdf-go-under-50-lines</id>
    <updated>2026-04-21T00:00:00.000Z</updated>
    <published>2026-04-21T00:00:00.000Z</published>
    <summary>動く請求書 PDF の完全コードを Go で 50 行。依存ゼロ、Chromium も CGO も不要。gpdf だけで header / table / total まで全部入り。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="tutorial" />
    <category term="templates" />
  </entry>
  <entry>
    <title>gpdf で Source Han Sans JP (源ノ角ゴシック JP) を使うには?</title>
    <link href="https://gpdf.dev/ja/blog/source-han-sans-jp-with-gpdf" />
    <id>https://gpdf.dev/ja/blog/source-han-sans-jp-with-gpdf</id>
    <updated>2026-04-19T00:00:00.000Z</updated>
    <published>2026-04-19T00:00:00.000Z</published>
    <summary>Adobe の GitHub リリースから TTF 版 Source Han Sans JP を取得して gpdf.WithFont で登録する。Noto Sans JP と同じグリフ、7 ウェイト、SIL OFL。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="cjk" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf が他の Go PDF ライブラリより 10〜30 倍速い理由</title>
    <link href="https://gpdf.dev/ja/blog/why-gpdf-is-faster" />
    <id>https://gpdf.dev/ja/blog/why-gpdf-is-faster</id>
    <updated>2026-04-19T00:00:00.000Z</updated>
    <published>2026-04-19T00:00:00.000Z</published>
    <summary>1 ページ 13 µs、100 ページレポート 683 µs。チューニングではなく 3 つの設計判断の積。実際のコードパスで説明する。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="benchmark" />
    <category term="internals" />
    <category term="comparison" />
  </entry>
  <entry>
    <title>gpdf で日本語が豆腐文字 (□□□) になる原因と直し方</title>
    <link href="https://gpdf.dev/ja/blog/tofu-boxes-japanese" />
    <id>https://gpdf.dev/ja/blog/tofu-boxes-japanese</id>
    <updated>2026-04-17T00:00:00.000Z</updated>
    <published>2026-04-17T00:00:00.000Z</published>
    <summary>PDF 出力で日本語が □ になるのはフォント未登録が最多。よくある 4 原因と直し方を最短で整理する。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="troubleshooting" />
    <category term="cjk" />
  </entry>
  <entry>
    <title>gpdf で IPAex ゴシックを使うには?</title>
    <link href="https://gpdf.dev/ja/blog/ipaex-gothic-gpdf" />
    <id>https://gpdf.dev/ja/blog/ipaex-gothic-gpdf</id>
    <updated>2026-04-17T00:00:00.000Z</updated>
    <published>2026-04-17T00:00:00.000Z</published>
    <summary>ipaexg.ttf を gpdf.WithFont で登録する。IPAex は Regular 1 ウェイトのみなので、Bold は合成か明朝ペアで対応する。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="cjk" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf の 12 列グリッドはどう動くのか？</title>
    <link href="https://gpdf.dev/ja/blog/12-column-grid" />
    <id>https://gpdf.dev/ja/blog/12-column-grid</id>
    <updated>2026-04-16T00:00:00.000Z</updated>
    <published>2026-04-16T00:00:00.000Z</published>
    <summary>gpdf の 12 列グリッドは r.Col(span, fn) に 1–12 の整数を渡すだけ。幅は span/12、ガターもブレークポイントもない PDF 向けの割り切った設計。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="tutorial" />
    <category term="templates" />
  </entry>
  <entry>
    <title>go-pdf/fpdf もアーカイブ。Go の PDF は gpdf に移る。</title>
    <link href="https://gpdf.dev/ja/blog/go-pdf-fpdf-archived" />
    <id>https://gpdf.dev/ja/blog/go-pdf-fpdf-archived</id>
    <updated>2026-04-16T00:00:00.000Z</updated>
    <published>2026-04-16T00:00:00.000Z</published>
    <summary>jung-kurt/gofpdf は 2021 年、go-pdf/fpdf は 2025 年にアーカイブ。2026 年に選ぶべき Go PDF ライブラリは gpdf — 理由とトレードオフ。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="migration" />
    <category term="comparison" />
    <category term="benchmark" />
  </entry>
  <entry>
    <title>Go で日本語 PDF を作る決定版ガイド (2026)</title>
    <link href="https://gpdf.dev/ja/blog/japanese-pdf-in-go" />
    <id>https://gpdf.dev/ja/blog/japanese-pdf-in-go</id>
    <updated>2026-04-16T00:00:00.000Z</updated>
    <published>2026-04-16T00:00:00.000Z</published>
    <summary>Go で日本語 PDF を吐く完全手順。CGO なし、Chromium なし、豆腐文字なし。フォント・サブセット・混植・縦書きの実務まで。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="tutorial" />
    <category term="cjk" />
    <category term="troubleshooting" />
  </entry>
  <entry>
    <title>2026 年 Go PDF ライブラリ徹底比較</title>
    <link href="https://gpdf.dev/ja/blog/go-pdf-library-showdown-2026" />
    <id>https://gpdf.dev/ja/blog/go-pdf-library-showdown-2026</id>
    <updated>2026-04-15T00:00:00.000Z</updated>
    <published>2026-04-15T00:00:00.000Z</published>
    <summary>2026 年時点で稼働する Go の PDF ライブラリを 4 種のワークロードでベンチ。ライセンス・依存・保守状況を横並びで比較する。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="comparison" />
    <category term="benchmark" />
  </entry>
  <entry>
    <title>gpdf で日本語フォントを埋め込むには?</title>
    <link href="https://gpdf.dev/ja/blog/embed-japanese-font" />
    <id>https://gpdf.dev/ja/blog/embed-japanese-font</id>
    <updated>2026-04-15T00:00:00.000Z</updated>
    <published>2026-04-15T00:00:00.000Z</published>
    <summary>gpdf.WithFont にTTFバイトを渡すだけ。サブセット埋め込みも自動、CGOも不要。Go で日本語 PDF を作る最短手順。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="cjk" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>gpdf で Noto Sans JP を使うには?</title>
    <link href="https://gpdf.dev/ja/blog/noto-sans-jp-with-gpdf" />
    <id>https://gpdf.dev/ja/blog/noto-sans-jp-with-gpdf</id>
    <updated>2026-04-15T00:00:00.000Z</updated>
    <published>2026-04-15T00:00:00.000Z</published>
    <summary>static 版の NotoSansJP-Regular.ttf を gpdf.WithFont に登録するだけ。Variable フォントを避ける理由と、17,000 グリフが PDF 内で 40 KB 未満まで減るサブセット化の話。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="recipe" />
    <category term="cjk" />
    <category term="tutorial" />
  </entry>
  <entry>
    <title>アーカイブされた gofpdf から gpdf へ移行する完全ガイド</title>
    <link href="https://gpdf.dev/ja/blog/gofpdf-migration" />
    <id>https://gpdf.dev/ja/blog/gofpdf-migration</id>
    <updated>2026-04-14T00:00:00.000Z</updated>
    <published>2026-04-14T00:00:00.000Z</published>
    <summary>gofpdf は 2021 年アーカイブ、後継 go-pdf/fpdf も 2025 年停止。CJK 対応・ゼロ依存の純 Go ライブラリ gpdf への移行ガイド。</summary>
    <author>
      <name>野田大貴</name>
      <uri>https://nadai.dev/ja/about</uri>
    </author>
    <category term="migration" />
    <category term="comparison" />
    <category term="tutorial" />
    <category term="cjk" />
  </entry>
</feed>
