Skip to content
Bitaloka Docs
PDF to JPG

PDF to JPG

Convert every page into a JPG image.

Request

POST https://api.bitaloka.io/v1/pdf/to-images
Multipart form→ application/zip

Parameters

NameTypeDescription
filerequired PDF file The PDF to process (multipart file field).Example: document.pdf
dpioptional text Resolution, 36-300 (default 150).Example: 150
qualityoptional text JPG quality, 30-100 (default 85).Example: 85
pagesoptional text Pages to render, e.g. 1,3-5 (default all; max 50 per request).Example: 1-3

Code samples

Generated from one source and tested against the live API.

curl -sS -X POST "https://api.bitaloka.io/v1/pdf/to-images" \
  -H "X-API-Key: $BITALOKA_API_KEY" \
  -F "file=@document.pdf;type=application/pdf" \
  -F 'dpi=150' \
  -F 'quality=85' \
  -F 'pages=1-3' \
  --fail-with-body -o pages.zip

Uses: curl 7.x+ · example.sh

Response

Returns the processed file as application/zip. The samples save it as pages.zip.

Use from an AI agent

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

Related services