Concept demo by Alex Mercer. Fictional business, not client work. Quillmere Lighting Co., its products, specs and ratings are made up.Back to Alex Mercer's portfolio

Spreadsheet to PDF

16 products in one spreadsheet.
16 print-ready datasheets out.

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.

Print preview Full Strata 420 sheet with a bollard drawing, specifications and finish swatches 8.5 × 11 IN
QL-BOL-42 / Strata 420US Letter · PDF

Workflow

How it works

One row becomes one sheet. Editing the source values changes the next PDF export.

01 Spreadsheet

Read the rows

Excerpt from the Products tab
SKUProductlmW
QL-WAL-12Cairn 1206408
QL-BOL-42Strata 42084010
QL-PTH-28Fern 2802504
QL-STP-10Sill 1001102

02 HTML + CSS

Fill the template

<h1 data-fit>{{name}}</h1>
<p>{{tagline}}</p>

{{#each finish_options}}
  <li>{{name}}</li>
{{/each}}

Validation

What gets checked

The generator checks the spreadsheet first, then measures the actual print layout in Chrome.

01 / Identity

Required fields and SKUs

Finds empty cells and flags every row that shares a duplicate SKU.

02 / Measurements

Numbers and units

Checks ranges, expects millimetres, kilograms and Celsius, and recalculates efficacy within 2%.

03 / Content

Images, finishes and length

Checks local image files, known finish names and character limits for each text field.

04 / Print

Text fit and page count

Measures marked text boxes after fonts load. Poppler confirms the PDF has exactly one page.

Deliberately broken spreadsheet

Example validation report

4 rows checked · 17 errors · 1 warning.

  • error
    skuThe SKU appears on more than one row.
  • error
    width_mmExpected mm; got in.
  • error
    descriptionText exceeds the print box by 0 px wide, 72 px tall.
  • warning
    accessoriesNo accessories listed. The sheet will show 'None listed'.
Read the example report

Print layout example

When a description runs long

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.

Long description clipped before its final sentences
Before · overflow error
Shortened description fitting on the Strata 420 sheet
After · fits the sheet

Project files

Downloads

Run locally

Use it with your own data

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.

Read the setup and column rules
python3 tools/make_workbook.py
python3 generate.py data/quillmere-products.xlsx --strict
python3 tools/build_docs.py