डेवलपर API
Proअपने टूल्स, स्क्रिप्ट या CI पाइपलाइन से मर्ज, वॉटरमार्किंग, पेज नंबरिंग, क्रॉपिंग, पासवर्ड सुरक्षा और अधिक को ऑटोमेट करने के लिए एक REST API।
Loading…
Authentication
Send your key as a Bearer token. Every request must be multipart/form-data.
curl -X POST https://your-domain.com/api/v1/merge \ -H "Authorization: Bearer pdr_live_..." \ -F "files=@a.pdf" \ -F "files=@b.pdf" \ -o merged.pdf
Endpoints
| Method | Path | Form fields |
|---|---|---|
| POST | /api/v1/merge | files (multiple PDF files) |
| POST | /api/v1/split | file, ranges (e.g. "1-3,5") |
| POST | /api/v1/organize | file, pages (JSON: [{"index":0,"rotation":90}]) |
| POST | /api/v1/watermark | file, text, opacity, fontSize, rotation |
| POST | /api/v1/page-numbers | file, prefix, startAt, position |
| POST | /api/v1/crop | file, mode ("resize"|"crop"), size|margin |
| POST | /api/v1/protect | file, password, ownerPassword? |
| POST | /api/v1/unlock | file, password |
Every endpoint requires an active Pro or Lifetime plan and returns the resulting file directly in the response body. Password-protect/unlock and Office conversions run server-side; everything else runs the same pdf-lib engine used by the website.
