onepage-pdf
Installation
SKILL.md
onepage-pdf
Vendored from github.com/xntj-ai/onepage-pdf by 张拼拼 · XNTJ, under the MIT License. See LICENSE.
Render HTML to one tall PDF page via headless Chrome, then crop the page to the real content height with PyMuPDF. Height is never predicted (print layout is not screen layout); it is measured after rendering, which is exact.
Requires: Python with pymupdf, plus a local Chrome or Edge. No API token.
Workflow
1. Inspect the source HTML first
Read the HTML and check four things; they decide whether --extra-css is needed: