PDF text extractor
pdf_textExtract the text of a PDF page by page as plain text or Markdown, with page selection, an optional layout-preserving mode and the document metadata. 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}] (Markdown: [{n, markdown}]), chars, metadata: {title, author, subject, keywords, creator, producer, created, modified}}; 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). | |
| format | No | text: the plain text of each page. markdown: headings, bold and italic, lists and paragraphs as Markdown, page headers and footers that repeat on most pages left out (layout does not apply). | text |
| layout | No | Preserve the visual layout (columns, spacing) instead of reading order. |