mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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.
1.4 KiB
1.4 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| 破損した PDF の修復を試みます。 | 864073a2f09f | human | 53e16551ecdb |
Repair PDF
内部構造を再構築することで、破損した PDF の修復を試みます。
API Endpoint
POST /api/v1/tools/pdf/repair-pdf
PDF ファイルを含む multipart フォームデータを受け付けます。settings フィールドは不要です。
Parameters
このツールに設定パラメータはありません。破損した PDF ファイルをそのままアップロードしてください。
Example Request
curl -X POST http://localhost:1349/api/v1/tools/pdf/repair-pdf \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@damaged.pdf"
Example Response
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/damaged.pdf",
"originalSize": 2450000,
"processedSize": 2400000
}
Notes
- 不正な形式のファイルを通すため、入力時の構造検証はスキップされます。
- 修復はベストエフォートです。深刻に破損したファイルは完全には復元できない場合があります。
- 相互参照テーブルが再構築されるため、修復後の PDF はサイズが元とわずかに異なる場合があります。