01 Spreadsheet
Read the rows
| SKU | Product | lm | W |
|---|---|---|---|
| QL-WAL-12 | Cairn 120 | 640 | 8 |
| QL-BOL-42 | Strata 420 | 840 | 10 |
| QL-PTH-28 | Fern 280 | 250 | 4 |
| QL-STP-10 | Sill 100 | 110 | 2 |
Spreadsheet to PDF
I built a small pipeline for a fictional lighting company. It reads each fixture from Excel, checks the data and print layout, then uses one template to make individual sheets and a combined catalog.
Workflow
One row becomes one sheet. Editing the source values changes the next PDF export.
01 Spreadsheet
| SKU | Product | lm | W |
|---|---|---|---|
| QL-WAL-12 | Cairn 120 | 640 | 8 |
| QL-BOL-42 | Strata 420 | 840 | 10 |
| QL-PTH-28 | Fern 280 | 250 | 4 |
| QL-STP-10 | Sill 100 | 110 | 2 |
02 HTML + CSS
<h1 data-fit>{{name}}</h1>
<p>{{tagline}}</p>
{{#each finish_options}}
<li>{{name}}</li>
{{/each}}
03 PDF
Open the finished sheet
Validation
The generator checks the spreadsheet first, then measures the actual print layout in Chrome.
01 / Identity
Finds empty cells and flags every row that shares a duplicate SKU.
02 / Measurements
Checks ranges, expects millimetres, kilograms and Celsius, and recalculates efficacy within 2%.
03 / Content
Checks local image files, known finish names and character limits for each text field.
04 / Print
Measures marked text boxes after fonts load. Poppler confirms the PDF has exactly one page.
Deliberately broken spreadsheet
4 rows checked · 17 errors · 1 warning.
Print layout example
This description is 407 characters, so it gets past the 420-character cell check, but it still runs below its text box. The layout check in Chrome catches it.


Output / US Letter
Browse all 16 fictional fixtures. Each preview opens its one-page PDF.
16 sheets

Wall sconces · QL-WAL-12

Wall sconces · QL-WAL-18

Wall sconces · QL-WAL-24

Bollards · QL-BOL-42

Bollards · QL-BOL-65

Bollards · QL-BOL-90

Path lights · QL-PTH-28

Path lights · QL-PTH-35

Path lights · QL-PTH-50

Step lights · QL-STP-10

Step lights · QL-STP-16

Accent lights · QL-ACC-09

Accent lights · QL-ACC-12

Accent lights · QL-ACC-18

Pole tops · QL-TOP-30

Pole tops · QL-TOP-38
Project files
Run locally
Keep the column headers, replace the example rows and put your fixture images in assets/products/. Use --template to point the generator at your own HTML.
python3 tools/make_workbook.py
python3 generate.py data/quillmere-products.xlsx --strict
python3 tools/build_docs.py