extract_resources
Extract text and embedded images from a PDF, saving them as separate text and image files for reuse.
Instructions
Extract text and/or embedded images from a PDF via PDF4me ExtractResources (/api/v2/ExtractResources). pdf_file_path, extract_text, extract_images; optional output_dir (defaults next to PDF). Writes extracted_resources.json, extracted_text.txt when text is extracted, and image files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| extract_text | No | ||
| pdf_file_path | Yes | ||
| extract_images | No | ||
| request_doc_name | No |