Render a PDF page as an image
pdf_render_pageRender a single PDF page as an image to view scanned content, diagrams, tables, or equations that plain text cannot convey.
Instructions
Render one page of a PDF as an image and return it for you to look at.
This is how you read a scanned PDF, and how you see anything that plain text cannot carry: figures, block diagrams, circuit drawings, tables, equations, page layout, handwriting.
The rendered page is returned as an actual image, so you see exactly what is on it.
Options:
scalezooms. Omit it and the page is rendered at a width that keeps body text legible. Use 2–3 when small text or a dense diagram matters.regionrenders only part of the page, as fractions of the page from the top-left, e.g. {x:0.5,y:0.1,w:0.5,h:0.3} for the top-right quadrant. Combine with a largerscaleto zoom into one figure or equation. Prefer this over rendering a whole page at a huge scale, which wastes the image budget on whitespace.out_pathalso writes the PNG to a file, when you need an artifact on disk.
To read a run of pages, call this once per page. Do not try to read a 400-page book end to end: use pdf_outline to find the relevant section and render only those pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page to render, 1-based. | |
| path | Yes | Path to the PDF. | |
| scale | No | Zoom factor. Omit for an automatic width that keeps body text legible. | |
| region | No | Render only part of the page, as fractions from the top-left. | |
| out_path | No | Also write the PNG here. |