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.9 KiB
2.9 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| एक PDF से टेक्स्ट occurrences को स्थायी रूप से हटाएं (सत्यापित सच्ची रिडैक्शन)। | 296ad2a701b2 | human | 45416a029bfd |
Redact PDF
सत्यापित सच्ची रिडैक्शन का उपयोग करके एक PDF से निर्दिष्ट टेक्स्ट occurrences को स्थायी रूप से हटाएं। रिडैक्ट किया गया टेक्स्ट फ़ाइल से पूरी तरह हटा दिया जाता है, न कि केवल एक काले बॉक्स से ढका जाता है।
API Endpoint
POST /api/v1/tools/pdf/redact-pdf
एक PDF फ़ाइल और एक JSON settings फ़ील्ड के साथ multipart form data स्वीकार करता है।
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फ़ील्ड दर्शाता है कि कितने occurrences रिडैक्ट किए गए। - आप एक ही अनुरोध में 50 शब्दों तक को रिडैक्ट कर सकते हैं।