Skip to content

tool: fit-page-size

Fit page size API

Fit every page to A4, Letter or another size.

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":"fit-page-size"}' | 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 out

Send 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/fit-page-size.

Limits

FreePaid plans
File size25 MB200 MB
Pages1,0001,000

Ship your PDF feature today

Free key in under a minute. 50 jobs a month on every tool, no card.