pdf_to_jpg
Convert PDF pages to JPG images or extract embedded images. Returns a zip archive of the images.
Instructions
Convert a PDF to JPG images. In "pages" mode (default) each page becomes a JPG; in "extract" mode only embedded images are pulled out. Returns a .zip archive of the images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "pages" renders each PDF page as an image; "extract" extracts embedded images only. | pages |
| input_file | Yes | Path to the PDF file to convert. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |