PDF Info
POST https://api.getdeckle.dev/v1/pdf/info
Extract metadata from a PDF document including page count, title, author, and other properties.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get metadata and information about a PDF document.
POST https://api.getdeckle.dev/v1/pdf/info
Extract metadata from a PDF document including page count, title, author, and other properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
pdf | string | Yes | Base64-encoded PDF document |
curl -X POST https://api.getdeckle.dev/v1/pdf/info \
-H "Authorization: Bearer dk_live_sk_..." \
-H "Content-Type: application/json" \
-d '{
"pdf": "<base64-encoded-pdf>"
}'
{
"pages": 5,
"title": "Quarterly Report",
"author": "Acme Corp",
"subject": "",
"creator": "Deckle API",
"producer": "Deckle",
"creation_date": "2026-03-01T12:00:00.000Z",
"modification_date": "2026-03-10T08:30:00.000Z",
"file_size": 245000
}
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid or missing PDF, or PDF exceeds size limit |
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 429 | RATE_LIMITED | Too many requests |
| 500 | INTERNAL_ERROR | Server error reading PDF |
