pretty-pdf
Installation
SKILL.md
Pretty PDF
Build a semantic HTML document, render it with the bundled CSS asset, and verify the final PDF page by page. Preserve source meaning and factual content; design must improve reading, not edit the substance silently.
Render contract
Resolve this skill's directory and pass assets/base.css to WeasyPrint without loading or
copying its full contents into model context. Put only document-specific font, palette, spacing,
and component overrides in override_css.
from pathlib import Path
from weasyprint import CSS, HTML
from weasyprint.text.fonts import FontConfiguration