---
title: "Inspect a PDF"
method: POST
path: "/pdf/info"
tags: ["PDF"]
---

# Inspect a PDF

`POST /pdf/info`

## Request

- Base URL: `https://abundanceapis.com`
- URL: `https://abundanceapis.com/pdf/info`
- Auth: none declared

Returns page count, byte size, and document metadata.

## Request body

- object
  - `file` object, required
    - `base64` string: Base64-encoded PDF (data URIs ok)
    - `url` string: Public URL of a PDF (fetched server-side)

## Response `200`

Default Response

- object
  - `pageCount` number
  - `sizeBytes` number
  - `title` string, nullable
  - `author` string, nullable
  - `subject` string, nullable
  - `creator` string, nullable
  - `producer` string, nullable
  - `keywords` string, nullable
  - `creationDate` string, nullable
  - `modificationDate` string, nullable

## Other responses

- `400`: Bad input
- `413`: Too large
- `502`: Upstream fetch failed
- `504`: Upstream timed out

---

[API](https://skmtc.dev/abundanceapis/apis/web-toolbox.md) · [All operations](https://skmtc.dev/abundanceapis/apis/web-toolbox/llms.txt) · [OpenAPI document](https://skmtc.dev/abundanceapis/apis/web-toolbox/revisions/ada2893fef43?raw)
