Files
SnapOtter/apps/docs/ja/tools/files/markdown-to-pdf.md
T
SnapOtterandGitHub 4963ab3bbd feat(docs-i18n): translate all documentation into 20 languages
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
2026-07-11 13:52:47 +08:00

1.6 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
Markdown ファイルをスタイル付きの PDF に変換します。 18474dc8772a human e6d142ee6e12

Markdown to PDF

Markdown ファイルをスタイル付きの PDF ドキュメントに変換します。プライバシー保護のため、リモートリソースは無効化されています。

API Endpoint

POST /api/v1/tools/files/markdown-to-pdf

Markdown ファイルを含むマルチパートフォームデータを受け付けます。

Parameters

このツールに設定可能なパラメータはありません。Markdown ファイルをアップロードすると PDF に変換されます。

Example Request

curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-pdf \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@document.md"

Example Response

202 Accepted を返します。進捗は /api/v1/jobs/{jobId}/progress の SSE で追跡できます。

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "async": true
}

Notes

  • 受け付ける入力形式: .md.markdown
  • プライバシーとセキュリティ保護のため、リモートリソース (URL 経由で参照される画像やスタイルシート) は取得されません。
  • Markdown はまず HTML にレンダリングされ、その後 WeasyPrint によって PDF に変換されます。
  • コードブロック、テーブル、その他の Markdown 要素は PDF 出力でスタイル付けされます。