Skip to main content

PDF Info

POST https://api.getdocuforge.dev/v1/pdf/info Extract metadata from a PDF document including page count, title, author, and other properties.

Request Body

ParameterTypeRequiredDescription
pdfstringYesBase64-encoded PDF document

Example

curl -X POST https://api.getdocuforge.dev/v1/pdf/info \
  -H "Authorization: Bearer df_live_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "pdf": "<base64-encoded-pdf>"
  }'

Response

{
  "pages": 5,
  "title": "Quarterly Report",
  "author": "Acme Corp",
  "subject": "",
  "creator": "DocuForge API",
  "producer": "DocuForge",
  "creation_date": "2026-03-01T12:00:00.000Z",
  "modification_date": "2026-03-10T08:30:00.000Z",
  "file_size": 245000
}

Errors

StatusCodeDescription
400VALIDATION_ERRORInvalid or missing PDF, or PDF exceeds size limit
401UNAUTHORIZEDInvalid or missing API key
429RATE_LIMITEDToo many requests
500INTERNAL_ERRORServer error reading PDF