Gotenberg
HTML・Office 文書を PDF に変換する API
オープンソース代替:Adobe Acrobat
自分のサーバーで動かすなら:メモリ 1GB 以上の VPS で、月額 588円〜(目安) 導入方法と VPS の比較を見る ↓
- Docker対応
- セルフホスト可
- 商用利用可
Gotenberg は HTML・Markdown・Word・Excel などを PDF に変換する Docker ベースの API サーバーです。帳票や請求書の PDF 生成をアプリに組み込む用途で使われます。
日本語対応
※ 日本語の翻訳ファイルの有無はリポジトリを自動で確認しています(翻訳の割合は、ファイルの形式によって計測できないため表示していません)。最終確認:2026/10/22
最近の更新
-
リリースノート(原文)
## Bug Fixes - **The `v8.38.0` Go module lacks LibreOffice `generateTaggedPdf`.** The `v8.38.0` tag moved after the Go module proxy had cached it, so `go get github.com/gotenberg/gotenberg/v8@v8.38.0` resolves to the previous commit, and a direct fetch from GitHub fails checksum verification. `v8.38.1` ships the same code as the `8.38.0` Docker image. Use it if you build Gotenberg from source or import it as a Go module. Docker users have nothing to do. See [8.38.0](https://github.com/gotenberg/gotenberg/releases/tag/v8.38.0) for the full release notes.
-
リリースノート(原文)
## Security Fixes ⚠️ - **Isolate each Chromium conversion in its own browser context.** All conversions shared one cookie jar, so a cookie sent with one request authenticated later or concurrent conversions to the same origin. Each conversion now gets a private browser context, with its own cookies, cache, and storage, disposed when it ends. `--chromium-clear-cookies` only cleared the jar between sequential conversions and is no longer needed. - **Enforce `--api-body-limit` before parsing.** The limit applied only after the whole multipart body was read and its files spooled to disk, so a request far above it consumed memory, disk, and I/O before the `413`. Gotenberg now rejects an oversized `Content-Length` up front and stops reading at the limit otherwise. - **Filter loopback WebSockets…
-
リリースノート(原文)
## Security Fixes ⚠️ - **Strip URL userinfo before allow-list and deny-list matching.** The regexes saw the credentials, so `http://trusted.example.com@10.0.0.1/` satisfied an allow-list anchored on `trusted.example.com` and skipped the IP checks, and `http://a@127.0.0.1/` slipped past a deny-list anchored on `127.`. - **Treat CGNAT and benchmarking ranges as non-public.** `100.64.0.0/10`, where Alibaba Cloud serves instance metadata, and `198.18.0.0/15` passed the `*_DENY_PRIVATE_IPS` checks. - **Reject metadata keys that collide with ExifTool options.** An unprefixed key such as `csv` or `o` reached ExifTool as a command-line option, not a tag. Such keys now return `400`; prefix them with a group, for example `XMP:csv`. - **Validate qpdf split spans.** qpdf read a span that is not a pag…
導入方法(セルフホスト)
compose.yaml
services:
gotenberg:
image: ${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}:${GOTENBERG_VERSION}
ports:
- "${API_PORT}:${API_PORT}"
environment:
GOTENBERG_API_BASIC_AUTH_USERNAME: ${GOTENBERG_API_BASIC_AUTH_USERNAME}
GOTENBERG_API_BASIC_AUTH_PASSWORD: ${GOTENBERG_API_BASIC_AUTH_PASSWORD}
OTEL_SERVICE_NAME: ${OTEL_SERVICE_NAME}
OTEL_TRACES_EXPORTER: ${OTEL_TRACES_EXPORTER}
OTEL_METRICS_EXPORTER: ${OTEL_METRICS_EXPORTER}
OTEL_LOGS_EXPORTER: ${OTEL_LOGS_EXPORTER}
OTEL_EXPORTER_OTLP_PROTOCOL: ${OTEL_EXPORTER_OTLP_PROTOCOL}
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT}
OTEL_EXPORTER_OTLP_INSECURE: ${OTEL_EXPORTER_OTLP_INSECURE}
command:
- "gotenberg"
- "--gotenberg-hide-banner=${GOTENBERG_HIDE_BANNER}"
- "--gotenberg-graceful-shutdown-duration=${GOTENBERG_GRACEFUL_SHUTDOWN_DURATION}"
- "--gotenberg-build-debug-data=${GOTENBERG_BUILD_DEBUG_DATA}"
- "--api-port=${API_PORT}"
- "--api-port-from-env=${API_PORT_FROM_ENV}"
- "--api-bind-ip=${API_BIND_IP}"
- "--api-tls-cert-file=${API_TLS_CERT_FILE}"
- "--api-tls-key-file=${API_TLS_KEY_FILE}"
- "--api-start-timeout=${API_START_TIMEOUT}"
- "--api-timeout=${API_TIMEOUT}"
- "--api-body-limit=${API_BODY_LIMIT}"
- "--api-root-path=${API_ROOT_PATH}"
- "--api-correlation-id-header=${API_CORRELATION_ID_HEADER}"
- "--api-enable-basic-auth=${API_ENABLE_BASIC_AUTH}"
- "--api-download-from-allow-list=${API_DOWNLOAD_FROM_ALLOW_LIST}"
- "--api-download-from-deny-list=${API_DOWNLOAD_FROM_DENY_LIST}"
- "--api-download-from-deny-private-ips=${API_DOWNLOAD_FROM_DENY_PRIVATE_IPS}"
- "--api-download-from-deny-public-ips=${API_DOWNLOAD_FROM_DENY_PUBLIC_IPS}"
- "--api-download-from-enable-environment-proxy=${API_DOWNLOAD_FROM_ENABLE_ENVIRONMENT_PROXY}"
- "--api-download-from-max-retry=${API_DOWNLOAD_FROM_MAX_RETRY}"
- "--api-download-from-max-concurrency=${API_DOWNLOAD_FROM_MAX_CONCURRENCY}"
- "--api-download-from-max-entries=${API_DOWNLOAD_FROM_MAX_ENTRIES}"
- "--api-disable-download-from=${API_DISABLE_DOWNLOAD_FROM}"
# …(続きは compose.yaml)
- VPSを契約する ― ConoHa VPS 1GBを選び、OSは Ubuntu を推奨
- Docker を入れる ― 多くのVPSはアプリテンプレートから1クリック。無ければ
curl -fsSL https://get.docker.com | sh - Gotenberg を起動 ― 上の compose ファイルを置いて
docker compose up -d - ドメインとHTTPS ― Caddy か Nginx Proxy Manager でリバースプロキシ(Let's Encrypt 自動)。独自ドメインが無ければ XServer ドメイン
で取得(PR)
このソフトが動く VPS プラン(必要メモリ 1GB 以上)
| サービス | プラン | 月額(目安) | |
|---|---|---|---|
| ConoHa VPS 最安 | 1GB | 588円〜 | 公式サイト ↗ |
| シンVPS | 1GB | 671円〜 | 公式サイト ↗ |
| XServer VPS クラウド | 4GB | 2,068円〜 | 公式サイト ↗ |
※ 月額は12か月契約の通常価格(税込・月額換算)の目安です。キャンペーン価格・初期費用は各社の公式サイトで確認してください。PR
Adobe Acrobat と比べていくら安くなる?
| 人数 | Adobe Acrobat(年額) | Gotenberg セルフホスト(年額) | 差額 |
|---|---|---|---|
| 1人 | 23,760円 | 7,056円 | −16,704円 |
| 5人 | 118,800円 | 7,056円 | −111,744円 |
| 10人 | 237,600円 | 7,056円 | −230,544円 |
| 30人 | 712,800円 | 7,056円 | −705,744円 |
※ Adobe Acrobat は 月額1,980円(Acrobat Standard・年間プラン月々払い・税込。Pro は2,530円)、セルフホストはConoHa VPS 1GB(月額588円)で試算。運用の手間・バックアップ・ドメイン代は含みません。
自分で入れるのが難しいときは
Gotenberg のセルフホストは、VPS の契約・Docker・ドメインと HTTPS・バックアップと、決めることが少なくありません。OSSMatch を運営する合同会社Edel Hearts では、サーバーの用意から初期設定・日本語化・バックアップと更新の仕組みづくりまでをまとめて代行しています。掲載している OSS は、実際に自社のサーバーで動かして確認しています。
Gotenberg の導入を相談する ↗相談は無料です。内容を伺ってから、費用と期間の目安をお伝えします。
ドキュメント・電子署名の他のOSSと比較
| ソフト | ★ Stars | 最終更新 | 日本語UI | 必要RAM | 難易度 | ライセンス |
|---|---|---|---|---|---|---|
| Gotenberg(このページ) | 13,378 | 1週間前 | 未検出 | 1GB | かんたん | MIT |
| Stirling-PDF | 94,739 | 11時間前 | あり | 1GB | かんたん | MIT |
| Paperless-ngx | 47,000 | 11時間前 | 100% | 2GB | ふつう | GPL-3.0 |
| ConvertX | 19,187 | 13時間前 | 未検出 | ― | かんたん | AGPL-3.0 |
よくある質問
Gotenberg は無料で使えますか?
Gotenberg はオープンソースで、ソフト自体は無料です。自分のサーバー(VPSなど)で動かす場合はサーバー代(月額数百円〜)がかかります。
Gotenberg は日本語で使えますか?
リポジトリ内に日本語の翻訳ファイルを自動検出できませんでした。実際の画面での日本語表示は確認できていないため、導入前に公式のデモやドキュメントで確認してください。
Gotenberg を商用利用できますか?
ライセンスは MIT です。商用利用・改変・再配布が広く認められています。
Adobe Acrobat から Gotenberg に移行できますか?
Adobe Acrobat のエクスポート機能でデータを書き出し、Gotenberg 側のインポート機能で取り込むのが基本です。対応形式はバージョンによって異なるため、公式ドキュメントで確認してください。Adobe Acrobat の他の代替は「Adobe Acrobat のオープンソース代替」ページで比較できます。
Gotenberg を動かすのに必要なサーバースペックは?
メモリ 1GB 以上が目安です。Docker に対応しているので、Docker が動く環境ならOSを問いません。