與網站相同的工具,從您的程式碼呼叫:透過 HTTP 送出檔案,取回結果。不儲存:處理完即刪除,一如既往。
每個請求都在標頭中攜帶您的金鑰。金鑰只在建立時顯示一次;請存放在密鑰管理工具中。您可以隨時撤銷。
Authorization: Bearer papyr_sk_…
curl -X POST https://www.aim-papyr.ai/api/v1/pdf/merge \
-H "Authorization: Bearer papyr_sk_YOUR_KEY" \
-F "files=@report.pdf" -F "files=@annex.pdf" \
-o merged.pdf
curl -X POST https://www.aim-papyr.ai/api/v1/pdf/ocr \
-H "Authorization: Bearer YOUR_KEY" \
-F "file=@factura.pdf" -F "lang=spa" \
-o factura-buscable.pdfimport requests
r = requests.post(
"https://www.aim-papyr.ai/api/v1/pdf/to-csv",
headers={"Authorization": "Bearer YOUR_KEY"},
files={"file": open("facturas.pdf", "rb")},
data={"sep": ";"}, timeout=120)
r.raise_for_status()
open("facturas.csv", "wb").write(r.content)
print(r.headers["X-Monthly-Used"], "/", r.headers["X-Monthly-Limit"])const fd = new FormData();
fd.append("file", archivo); // File o Blob
const r = await fetch("https://www.aim-papyr.ai/api/v1/pdf/to-word", {
method: "POST",
headers: { Authorization: "Bearer YOUR_KEY" },
body: fd,
});
if (!r.ok) throw new Error((await r.json()).detail);
const docx = await r.blob();
| GET | /api/v1/me | 驗證您的金鑰;回傳方案、用量與限制。 |
| POST | /api/v1/convert/to-pdf | Office → PDF — file |
| POST | /api/v1/img/compress | 壓縮圖片 — file + quality |
| POST | /api/v1/img/convert | 轉換圖片 — file + fmt, quality |
| POST | /api/v1/pdf/compress | 壓縮 — file |
| POST | /api/v1/pdf/merge | 合併 — files[] |
| POST | /api/v1/pdf/ocr | OCR 文字辨識 — file + lang |
| POST | /api/v1/pdf/page-numbers | 頁碼 — file + position, start |
| POST | /api/v1/pdf/protect | 保護 — file + password |
| POST | /api/v1/pdf/rotate | 旋轉 — file + degrees |
| POST | /api/v1/pdf/split | 分割 — file + cada |
| POST | /api/v1/pdf/to-csv | PDF → CSV — file + sep |
| POST | /api/v1/pdf/to-images | PDF → 圖片 — file + dpi, fmt |
| POST | /api/v1/pdf/to-text | PDF → 純文字 — file |
| POST | /api/v1/pdf/to-word | PDF → Word — file + lang |
| POST | /api/v1/pdf/unlock | 解除密碼 — file + password |
| POST | /api/v1/pdf/watermark | 浮水印 — file + text |
僅為您的這次操作在歐盟伺服器上處理,並隨回應一併丟棄。API 不會放寬網站隱私政策的任何一條。