sch_export_image
Export a full EasyEDA schematic sheet as a PNG, including border and title block, by rasterizing the SVG via Chrome DevTools Protocol. Requires EasyEDA Pro with remote debugging.
Instructions
Export the FULL schematic sheet as a PNG (whole A4 page: border, title block, and every component) — reproducing EasyEDA's "Export -> PNG" with true colors, via Chrome DevTools Protocol. Not a viewport screenshot: it reads the schematic SVG, reframes to the full content, and rasterizes. Requires EasyEDA Pro launched with remote debugging (run-easyeda-debug.bat / README) and an open schematic page. The image is returned inline; pass "fileName" to ALSO save it to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | CDP remote-debugging port (default 9222 or A2N_EDA_CDP_PORT). | |
| scale | No | Rasterization scale factor (default 2 = ~2x resolution). | |
| fileName | No | If set, also save the PNG to disk. Absolute path is used as-is; a bare name is placed under A2N_EDA_CAPTURE_DIR (or the OS temp dir). ".png" is appended if missing. |