drawing_render
Render a PDF drawing page or region to PNG to visually read vectorised dimensions that text search misses. Use region + higher dpi to zoom; optional part-mm grid aids position reading.
Instructions
Render a page or region of a PDF drawing to a PNG and return its path (view it with an image reader). Use it to locate views and to READ the dimension values by eye: they are vectorised, so text search cannot find them. Zoom with region + higher dpi (300-400) for small annotations. With grid (part mm) and origin, a graduated grid in PART millimetres is drawn to help read positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | 10-1200. | |
| grid | No | Grid step in part mm (needs origin). | |
| page | No | Page index, 0-based. | |
| scale | No | Drawing scale '1:2' (1 mm on paper = 2 mm on the part). If omitted the title block text is used when readable, else 1:1. The title block scale is sometimes WRONG: cross-check with a known dimension. | |
| origin | No | [x, y] PAPER mm point that becomes the model origin (0, 0), typically an axis/centre found in a first call without origin. Model X is right, Y up. | |
| region | No | [x0, y0, x1, y1] in PAPER mm from the sheet's top-left corner (y down). Omit for the whole sheet. | |
| out_png | No | Output PNG path (default: temp folder). | |
| pdf_path | Yes | Path to a VECTOR PDF drawing (not a scan). |