pdf_render_page
Render a single PDF page to a PNG image for reading scanned pages, with optional DPI control and saving; accepts a local path, base64 data, or an HTTPS URL.
Instructions
Render one PDF page to a PNG image (dpi up to 300, default 110) and return it as an image, e.g. to read a scanned page. The PDF is a path in the root folder, base64 data, or an https url. Optionally also save the PNG inside the root folder (needs a writable server). Needs PDFium.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution, 1 to 300 (default 110). | |
| url | No | An https:// URL to fetch the PDF from, instead of `path` (up to 8 MiB). | |
| data | No | Base64 PDF bytes, instead of `path` (up to 8 MiB). | |
| page | Yes | Page number, 1-based. | |
| path | No | PDF file, relative to the root folder. Give exactly one of path, data, url. | |
| save_as | No | Also save the PNG at this path relative to the root (needs --writable). | |
| overwrite | No | Replace `save_as` if it exists (default false). |