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.
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) |