Skip to content
Bitaloka Docs
PDF info

PDF info

Read page count, size and metadata of a PDF.

Request

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

Parameters

NameTypeDescription
filerequired PDF file The PDF to process (multipart file field).Example: document.pdf

Code samples

Generated from one source and tested against the live API.

curl -sS -X POST "https://api.bitaloka.io/v1/pdf/info" \
  -H "X-API-Key: $BITALOKA_API_KEY" \
  -F "file=@document.pdf;type=application/pdf" \
  --fail-with-body

Uses: curl 7.x+ · example.sh

Response

Real response from the live API for the example request.

200 OK · application/json
{
  "pages": 3,
  "title": "sample",
  "producer": "pdf-lib (https://github.com/Hopding/pdf-lib)"
}

Use from an AI agent

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

Related services