Files
SnapOtter/apps/docs/zh-TW/tools/pdf/merge-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.4 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
將多個 PDF 合併成單一文件。 e82e389cb8b6 human 9f0143772741

合併 PDF

將兩個或多個 PDF 檔案合併成單一文件,並保留每個輸入檔案的頁面順序。

API 端點

POST /api/v1/tools/pdf/merge-pdf

接受包含兩個或多個 PDF 檔案的 multipart 表單資料。不需要 settings 欄位。

參數

此工具沒有設定參數。只需上傳兩個或多個 PDF 檔案即可。

限制
最少檔案數 2
最多檔案數 20

範例請求

curl -X POST http://localhost:1349/api/v1/tools/pdf/merge-pdf \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@document1.pdf" \
  -F "file=@document2.pdf" \
  -F "file=@document3.pdf"

範例回應

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/merged.pdf",
  "originalSize": 4500000,
  "processedSize": 4200000
}

注意事項

  • 檔案會依上傳的順序合併。
  • 至少需要兩個 PDF 檔案;若提供的檔案少於此數量,請求會以 400 錯誤失敗。
  • 輸入檔案的最大數量為 20 個。
  • 加密的 PDF 必須先解鎖才能合併。