pdf_extract
Extract all text from a base64-encoded PDF, returning full text, per-page content, page count, and metadata. Ideal for RAG pipelines, document QA, or LLM ingestion.
Instructions
PDF Text Extraction — Extract all text from a PDF. Send as pdf_base64 (base64-encoded PDF, max ~10 MB decoded). Returns text (full concatenated text), pages array (per-page text + char_count), page_count, and metadata (title, author, creator). Encode with: Buffer.from(pdfBytes).toString('base64'). Ideal for RAG pipelines, document QA, or LLM ingestion. Cost: $0.0055 USDC per call. Latency p99: 1500ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | Maximum number of pages to extract. Default: 50. Use to limit processing time for large PDFs. | |
| pdf_base64 | Yes | Base64-encoded PDF file content. Decode a PDF file to base64 and pass it here. Max ~10 MB (unencoded). |