extract_document_text
Extract structured text from a PDF, page by page, and receive JSON with page count, document metadata, and each page's text. Limit output by specifying pages like '1-3' or '1,5'.
Instructions
Extract structured text from a PDF, page by page (PyMuPDF). Returns JSON: page count, document metadata, and each page's text with 1-based page numbers — use pages='1-3' or '1,5' to limit output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| pdf_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |