Reports and exports
Every writer is part of the application. There is no external dependency for the PDF, the spreadsheet or the ZIP container, which means exports work on any PHP host with the required extensions.
PDF report
A flowing A4 document, written with a custom PDF 1.4 writer using the standard Type 1 fonts so no font embedding is needed. Plan figures are embedded as Flate-compressed RGB images. A typical report with a plan and a polar diagram is a few hundred kilobytes.
Sections:
- Cover — verdict, the four headline numbers, project identification, the standard applied
- Design inputs — geometry, surfaces, maintenance factor, grid
- Method — what was computed and how, the lumen method cross-check, numerical quality
- Results — illuminance plan figure, statistics by area and zone, surfaces, vertical and
cylindrical illuminance, glare
- Compliance — every criterion with actual, required, margin and verdict, plus notes on anything
failing or marginal
- Recommended corrections — quantified actions ordered by severity
- Daylight — daylight factors, glazing schedule, annual availability
- Energy — consumption, controls, power density against allowance, whole-life cost
- Fixture schedule — bill of quantities with type marks
- Photometric distributions — one polar diagram per distinct product
- Basis of the calculation — what the numbers do and do not account for
Sections never split across a page boundary in the middle of a table row. Tables repeat their header when they continue onto a new page.
Spreadsheet
A real .xlsx package with styled sheets:
| Sheet | Contents | | --- | --- | | Summary | Project, geometry, results, method and numerical quality, verdict | | Compliance | Every check with verdict colouring, plus the recommendations | | Illuminance grid | The field as a matrix, rows running from the top of the plan downward so it reads like the drawing | | Point data | One row per grid point with direct, indirect, maintained, initial and daylight factor | | Fixture schedule | Full bill of quantities with every product attribute | | Energy | Installed load, consumption, cost, carbon, monthly breakdown, whole-life cost | | Daylight | Daylight factors, glazing, annual metrics, month by month | | Surfaces | Per-surface illuminance, exitance and luminance |
The project-level workbook adds a sheet comparing every room, and a compliance sheet per room.
Strings are written inline rather than through a shared-string table. That costs a little file size and keeps the writer small and the output valid.
CSV
Three shapes, chosen with the what parameter:
- grid — the illuminance matrix with a header block recording room, field, working plane height,
maintenance factor and grid spacing, then the statistics
- schedule — the fixture schedule as a flat table
- compliance — every check as a row
A UTF-8 byte order mark is written, because Excel otherwise misreads accented characters in a CSV opened by double click.
DXF layout
ASCII DXF R12, which every CAD application reads. Units are metres, with $INSUNITS set to 6 so a receiving application knows.
Layers:
| Layer | Contents | | --- | --- | | LUM-ROOM | Room outline | | LUM-GRID | Calculation grid points | | LUM-FIXTURES | Luminaire footprints, rotated, with diagonals so they read as luminaires | | LUM-LABELS | Luminaire references | | LUM-ISOLUX | Iso-illuminance contours with level labels | | LUM-VALUES | Illuminance value at each grid point | | LUM-WINDOWS | Glazing | | LUM-ZONES | Task and surrounding areas | | LUM-TITLE | Title block above the plan |
Freeze LUM-VALUES and LUM-GRID to get a clean coordination drawing, or keep them for a verification print.
Plan images
PNG at any size up to 2400 pixels, with a choice of field and colour scale:
- maintained, initial, direct or interreflected illuminance
- daylight factor, which switches the scale, unit and contour set automatically
The rendering includes iso-illuminance contours with inline labels, luminaire footprints at true size and rotation, glazing, zone outlines, dimensioned axes, a scale bar, a colour legend and a statistics line. The same renderer produces the report figure, so what you see is what the report contains.
Four colour scales: the classic lighting false colour, a perceptually uniform scale that survives printing and colour vision deficiency, monochrome for line-art drawings, and a diverging scale.
Polar intensity diagrams
Per fixture, showing the C0-C180 and C90-C270 planes with intensity rings and angular spokes, plus a summary line of flux, peak intensity and angle, downward fraction and distribution class.
Project files
The whole project exports as JSON: settings, rooms, placements, glazing, controls, zones and the schedule. Fixtures are referenced by product code, so an import re-links them to the receiving library. Anything missing is reported rather than silently dropped.
Use these for archiving, for moving a project between installations, or for handing a design to a colleague.
Version history
Saving a revision snapshots the entire project state. Restoring one first snapshots the current state, so a restore is never destructive. The list shows the revision number, label, timestamp and snapshot size.