Example
API=https://api.pdftrusted.com
ID=$(curl -sS -X POST $API/v1/tasks -H "X-API-Key: $KEY" \
-H "Content-Type: application/json" -d '{"tool":"add-margins"}' | jq -r .task_id)
curl -sS -X PUT $API/v1/tasks/$ID/upload -H "X-API-Key: $KEY" -F file=@in.pdf
curl -sS -X POST $API/v1/tasks/$ID/process -H "X-API-Key: $KEY"
curl -sS -L "$API/v1/tasks/$ID/download?redirect=1" -H "X-API-Key: $KEY" -o outSend one file in the file field, or PUT it to the signed upload URL from the create answer. Options for this tool: GET /v1/tools/add-margins.
Limits
| Free | Paid plans | |
|---|---|---|
| File size | 25 MB | 200 MB |
| Pages | 1,000 | 1,000 |
Ship your PDF feature today
Free key in under a minute. 50 jobs a month on every tool, no card.