cottom/document-read
Reads one PDF safely: refuses damaged, encrypted or oversized files, strips scripts, launch actions and embedded files, and returns a sanitized copy, its text and a PNG of every page, parsed in a sandboxed process with no network.
Run cottom/document-read with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| document |
string
|
The PDF to read.
|
|
| ref |
string
|
|
The caller's reference for this run; not read.
|
{
"type": "object",
"title": "Input",
"required": [
"document"
],
"properties": {
"ref": {
"type": "string",
"title": "Ref",
"default": "",
"x-order": 1,
"description": "The caller's reference for this run; not read."
},
"document": {
"type": "string",
"title": "Document",
"format": "uri",
"x-order": 0,
"description": "The PDF to read."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}