Menu

Turning a Build Log Into a Printed Book With Plain CSS
📰

Turning a Build Log Into a Printed Book With Plain CSS

DEV Community: laravel·Matt·1 day ago
#dB6kroq5
#devtolaravel#devto#dev#paper#margin
Long article (2023 words) — no AI summary yet.
Reading 0:00
15s threshold

I run Boat Build Log , a free site where people keep a build log of the wooden boat they're building at home. A finished log is a couple of years of somebody's evenings: hundreds of photos, the hours, what the epoxy cost, the day the hull got flipped.

I've heard the same thing from a lot of builders. They want that log in the shop , not on a website. On a tablet with epoxy on their gloves, or printed and in a binder next to the plans. And a few of them want the version that outlives the site: something bound that sits on a shelf.

So every build now has a "book" button. This post covers how it works, which is mostly CSS Paged Media and a small Laravel controller, and the two bugs that made every printed copy come out wrong for a while.

The setup

Piece Version

Laravel 13

PHP 8.3+

MySQL 8.0

Renderer Chrome's own print engine (131+)

Why the browser renders the PDF, not the server

My first instinct was a server-side PDF library.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.