plan_photo_sheet
Compute the layout of an ID-photo print sheet without rendering it: resolves the photo size from the preset (or custom millimetres), counts the photos, and checks whether the grid fits the printable area of the chosen paper. Returns a JSON plan with ok, photo/needed/usable dimensions and a message; ok is false (never an error) when the grid does not fit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | ||
| rows | No | ||
| gapMm | No | ||
| paper | No | A4 | |
| preset | No | fr-std | |
| marginMm | No | ||
| customWidthMm | No | ||
| customHeightMm | No |