PDF inspect
Try it interactively →POST /api/pdf-inspectInspect a PDF without parsing its contents: page count, page dimensions, title, author, subject, keywords, creator, producer, creation and modification dates.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| pdf* | file | — | PDF document bytes. |
Response
Modes: json. Cache: yes (24h TTL).
Code samples
Built from the hello example.
# Download or substitute the example input:
# curl -O https://xtract.bot/examples/pdf-inspect/hello.pdf
PDF=$(base64 -w0 < hello.pdf)
curl -X POST https://api.xtract.bot/api/pdf-inspect \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
-H "X-Api-Key: $XTRACT_API_KEY" \
-d '{
"pdf": "'"$PDF"'"
}'