split_pdf
Split oversized PDFs into smaller chunks that fit within OCR.space API size limits. Handles files exceeding 1 MB (free) or 5 MB (pro) by grouping pages into compliant segments.
Instructions
Split a large PDF into smaller chunks that fit within API size limits. Useful for processing PDFs that exceed the 1 MB (free) or 5 MB (pro) limit. Each chunk contains as many pages as possible while staying under the limit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Target tier determines size limit: free=1MB, pro=5MB | free |
| file_path | Yes | Path to the PDF file to split | |
| output_dir | No | Directory for output chunks (uses temp dir if not specified) |