extract_pdf
Extract text, markdown, and tables from PDF URLs with optional OCR. Choose page, document, or RAG chunk output, and control page ranges to stay within budget.
Instructions
Extract text, markdown and ruled tables from PDFs at a URL, with optional Tesseract OCR for scanned pages. output_mode 'page' gives one row per page, 'document' one row per PDF with a pages array, 'chunk' gives RAG chunks of chunk_size characters with page and character offsets. page_range ('1-5', '8', '12-') and max_pages_per_pdf keep unwanted pages from ever being charged. Billed to your own Apify account at $0.0003 per delivered page and $0.003 per OCR page; max_pages is the hard spend cap for the whole run (1000 pages = $0.30, or $3.00 if ocr is on — OCR pages spend the same max_pages budget at 10x the price). That ceiling is also sent to Apify as the run's maximum total charge. Document summary rows, error rows and pages outside the range are free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| urls | Yes | ||
| max_pages | Yes | ||
| chunk_size | No | ||
| page_range | No | ||
| output_mode | No | page | |
| chunk_overlap | No | ||
| extract_tables | No | ||
| include_markdown | No | ||
| max_pages_per_pdf | No | ||
| max_ocr_pages_per_pdf | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |