Skip to content
Bitaloka Docs
Organize PDF

Organize PDF

Reorder, rotate or delete pages.

Request

POST https://api.bitaloka.io/v1/pdf/organize
Multipart form→ application/pdf

Parameters

NameTypeDescription
filerequired PDF file The PDF to process (multipart file field).Example: document.pdf
orderrequired text New page order, e.g. 3,1,2.Example: 2,1

Code samples

Generated from one source and tested against the live API.

curl -sS -X POST "https://api.bitaloka.io/v1/pdf/organize" \
  -H "X-API-Key: $BITALOKA_API_KEY" \
  -F "file=@document.pdf;type=application/pdf" \
  -F 'order=2,1' \
  --fail-with-body -o organized.pdf

Uses: curl 7.x+ · example.sh

Response

Returns the processed file as application/pdf. The samples save it as organized.pdf.

Use from an AI agent

On the Bitaloka MCP server this service is the pdf_organize tool. MCP server →

Related services