render_postscript
Convert PostScript/EPS programs to PDF, PNG, or SVG files with options for page selection, resolution, and EPS cropping. Specify source or path, and get an output file path for easy access.
Instructions
Render a PostScript/EPS program to a PDF, PNG or SVG file.
output_format is one of: "png", "png-alpha", "pdf", "svg".
resolution is DPI for raster output. page (1-based) renders a single
page. eps_crop trims to the bounding box (good for EPS figures).
Set return_base64 to also receive PNG bytes inline for quick preview.
Provide EITHER source or path. The output file path is returned so a
human can open it. Diagnostics are reported the same way as
validate_postscript — always check ok and fix any diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| path | No | ||
| source | No | ||
| eps_crop | No | ||
| resolution | No | ||
| output_format | No | png | |
| return_base64 | No |