pdf_extract_document
Extract all objects from each page of a PDF, either the entire document or a specified page range, and return metadata, page count, and per-page object data.
Instructions
Extract every object of every page in a range: the whole document, or first_page..last_page.
Omit both bounds for the whole document. Returns {'metadata', 'pageCount', 'pages'} where pages holds one PageData object per extracted page and
pageCount is the number of pages actually returned, not the document's
total. Large documents should be read in ranges, or exported with pdf_export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the PDF: absolute, or relative to the server process working directory. Any readable regular file is accepted; the .pdf suffix is not required. | |
| password | No | Password for an encrypted PDF. Omit or pass null for unprotected documents. | |
| last_page | No | Last page to extract (1-based, inclusive). Defaults to the last page. | |
| first_page | No | First page to extract (1-based, inclusive). Defaults to page 1. |