← Back to home

A Web Page to a One-Page PDF in Seconds — I Open-Sourced the Skill

Long-Form Video · EP0035 June 10, 2026 3:01
What this episode covers

Having AI generate all kinds of beautiful web pages as reporting deliverables is very popular right now. But there's a problem: when you send a web page to a client or partner over a chat app, sometimes they can't open it, or they open it and the content is a mess — chat apps on phones can't render web pages directly.

Printing to PDF doesn't work either: it renders on A4 paper by default, chopping a beautiful long page into disconnected slices, and the motion and translucency effects in the page render with the wrong colors.

So I built this skill: render the page first to measure its real width and height, size the container to that exact height, generate a pixel-tight one-page PDF, trim the excess white margin, and replace frosted glass with real colors. It's open source — one sentence to Claude Code and you're using it.

Companion downloads · Feed them to your Claude Code

Let me share a genuinely useful skill. Having AI generate all kinds of beautiful web pages as our reporting deliverables is very popular right now. But there’s a problem I run into in my own work: when you send that page to a client or a partner over a chat app, sometimes they can’t open it — or they open it and what they see is a mess, nothing like the page we generated.

Why a web page falls apart when you send it

Why does this happen? On phones, our chat apps can’t render web pages directly; they need you to hand the link off to a browser. That’s still a bit of a hassle on a phone, and some people simply won’t bother.

So I started thinking about how to solve this. My first instinct: just print the page to a PDF file — that’s what we’ve always done. But that runs into quite a few problems of its own. A PDF renders on A4 paper by default, so it chops our beautiful long page into disconnected slices; nothing flows anymore. And web pages are full of motion and translucency effects whose colors come out wrong in print.

How this skill works

So I built this skill, which turns our web pages into pixel-tight one-page PDFs. Here’s how it does it:

  • Render the page once first, measuring its actual width and height;
  • Build a container at that exact height and generate the PDF pixel-tight to it;
  • At the same time, trim the excess white margin off the page, producing a completely clean one-page PDF;
  • Any frosted-glass or translucency effects in the page get swapped for real colors, so nothing renders wrong.

The resulting PDF auto-fits the width when you open it on a phone or a tablet, and it looks great.

Open source, one sentence to use it

I’ve already open-sourced this skill, so you can download it directly. Once you have it, just tell Claude Code: “Here’s the repo URL for a skill, go take a look at how to use it” — it’ll install the relevant dependencies, load the skill into your project folder, and from then on it’s dead simple to use.

Take the intro page shown in this episode — I actually generated it in Claude Code with a single sentence: “We have a skill that turns web pages into one-page PDFs. Generate a PPVI light-style web page that explains it to people in plain language, and once you’re done, turn that page into a one-page PDF.” And it produced the PDF, ready to share with anyone. A genuinely handy, genuinely useful skill.

I’ve got two episodes prepared today, and this first one is on the shorter side. Go to my profile for the second video, which covers the Fable model Claude shipped today and how to wring it completely dry, for everything it’s got, during its limited free window. See you in the next one.

So I built this skill — it turns our web pages into pixel-tight one-page PDFs.