About this endpoint
What it does
Reads the document properties of a PDF sent by public URL or as Base64, and returns them as a metadata object.
Request Body
| Parameter | Type | Description |
|---|---|---|
| pdf_url | String | Required if pdf_base64 is not set. Public URL of the PDF. Must be http or https. Max length 2083 characters. |
| pdf_base64 | String | Required if pdf_url is not set. Base64-encoded PDF. Provide exactly one of pdf_url or pdf_base64. |
Response
Returns a JSON object with a metadata object. Each key is a document property found in the PDF, and each value is a string.
| Parameter | Type | Description |
|---|---|---|
| metadata | Object | Document properties found in the PDF. Only fields present in the file are returned. |
| metadata.Title | String | Document title. Returned only if set in the PDF. |
| metadata.Author | String | Document author. Returned only if set in the PDF. |
| metadata.Subject | String | Document subject. Returned only if set in the PDF. |
| metadata.Keywords | String | Document keywords. Returned only if set in the PDF. |
| metadata.Creator | String | Application that created the original document. Returned only if set in the PDF. |
| metadata.Producer | String | Application that produced the PDF. Returned only if set in the PDF. |
| metadata.CreationDate | String | Creation date as stored in the PDF. Returned only if set in the PDF. |
| metadata.ModDate | String | Last modification date as stored in the PDF. Returned only if set in the PDF. |
Notes
- Provide exactly one of
pdf_urlorpdf_base64. Sending both or neither returns an error. - The request body must be under 5 MB. Larger bodies return
413. - Password-protected PDFs return
422with typepdf_password_protected. - A file that is not a readable PDF, invalid Base64, or a URL that cannot be loaded returns
422.details[].locnames the field. - Only document properties are read. Page text is not returned.



