PDF text extractor
pdf_textExtract the text of a PDF page by page, with page selection and an optional layout-preserving mode. Cost in credits: ceil(pages extracted / 20), minimum 1. File input (file): base64 string, data: URI or {"url": "https://..."}. Output: JSON. {page_count, pages: [{n, text}], chars}; meta.note when the PDF has no text layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF: base64 string (or data: URI) or {"url": "https://..."}. Up to 10 MB. | |
| pages | No | Pages to extract, e.g. '1-3,7' or '5-' (default: all pages). | |
| layout | No | Preserve the visual layout (columns, spacing) instead of reading order. |