PDF pages to PNG images
pdf_to_imagesPDF pages to PNG images. Renders each page (or the ones in pages) as a PNG. scale 1 is 72 dpi; 2 is 144 dpi.
Costs 1 credit per call.
Returns a temporary download link (valid 15 minutes). Always include that link in your reply so the user can open or download the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF, base64-encoded. | |
| pages | No | Pages to act on, 1-indexed, e.g. "1-3,5,7-9". Default: all pages. | |
| scale | No | Resolution multiplier (0.5-4). Default 1.5; higher = sharper and larger images. |