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.
2.7 KiB
2.7 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| ลบข้อความที่พบใน PDF อย่างถาวร (การลบข้อมูลจริงที่ตรวจสอบได้) | 296ad2a701b2 | human | 40bf7d3853af |
Redact PDF
ลบข้อความที่ระบุออกจาก PDF อย่างถาวรโดยใช้การลบข้อมูลจริงที่ตรวจสอบได้ ข้อความที่ลบจะถูกนำออกจากไฟล์อย่างสมบูรณ์ ไม่ใช่แค่ปิดทับด้วยกล่องสีดำ
API Endpoint
POST /api/v1/tools/pdf/redact-pdf
รับข้อมูลแบบ multipart form data พร้อมไฟล์ PDF และฟิลด์ JSON settings
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| terms | string[] | Yes | - | สตริงข้อความที่จะลบ (1-50 รายการ แต่ละรายการสูงสุด 200 อักขระ) |
| caseSensitive | boolean | No | false |
การจับคู่คำนึงถึงตัวพิมพ์ใหญ่-เล็กหรือไม่ |
Example Request
curl -X POST http://localhost:1349/api/v1/tools/pdf/redact-pdf \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@contract.pdf" \
-F 'settings={"terms": ["John Doe", "555-0123"], "caseSensitive": false}'
Example Response
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/contract.pdf",
"originalSize": 245000,
"processedSize": 243000,
"found": 7
}
Notes
- รูปแบบอินพุตที่รองรับ:
.pdf - นี่เป็นเครื่องมือแบบเร็ว (ซิงโครนัส) ที่คืนผลลัพธ์โดยตรง
- นี่คือการลบข้อมูลจริง: ข้อความที่ตรงกันจะถูกนำออกจากสตรีมเนื้อหา PDF ไม่ใช่แค่ปิดบังทางสายตาเท่านั้น
- ฟิลด์
foundในการตอบกลับจะระบุว่ามีข้อความกี่รายการที่ถูกลบ - คุณสามารถลบข้อความได้สูงสุด 50 รายการในคำขอเดียว