footprint_render_package
Render a package's land pattern to SVG or PNG and overlay its terminals, making missing lands visible when checking the footprint against datasheet drawings.
Instructions
Draw the land pattern a package gives, to compare with its datasheet.
Offline. Renders the footprint the engine would build (lands with their numbers, paste windows, silkscreen with the pin 1 dot, assembly outline, courtyard, origin and a 1 mm scale bar) and draws the package's terminals over the lands as dashed green outlines, so a land that misses its terminal shows. A caption gives the pattern's pitch, span and land sizes. Read the returned image next to the datasheet's package drawing and recommended land pattern.
Args:
package: the PackageSpec as an object or JSON text.
density: L, N or M (least, nominal, most).
path: where to write the SVG; default
<workspace>/renders/<name>_<density>.svg.
png: also write a PNG beside it through the headless browser
the board renders use, when one is installed.
Returns:
{ok, svg_path, png_path, name, density, metrics, warnings},
with rasterize_note when no PNG could be made.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| png | No | ||
| path | No | ||
| density | No | N | |
| package | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||