Design & media

Beautiful PDF

Try it

Design and visually review print-ready PDFs

What it does

Turn structured content into a designed document, then inspect the rendered pages before delivery.

The skill document

Beautiful PDF

Turn structured content into a designed document, then inspect the rendered pages before delivery.

Workflow

  1. Choose the document pattern in references/doc-types.md.

  2. Draft in Markdown for linear documents or HTML for custom layouts.

  3. Start from assets/default.css and select a restrained palette from references/style-guide.md.

  4. Render:

    pandoc input.md --standalone --pdf-engine=weasyprint --css=assets/default.css -o output.pdf
    # Or, for hand-authored HTML:
    weasyprint input.html output.pdf
    
  5. Rasterize every page and inspect it:

    python3 scripts/pdf-to-png.py output.pdf /tmp/pdf-qa --dpi 200
    
  6. Fix overflow, weak hierarchy, widows/orphans, awkward breaks, clipped tables, low contrast, and inconsistent spacing. Render again until the pages are intentional.

Guardrails

  • Do not pass Pandoc --metadata title when Markdown already contains an H1; it duplicates the title.
  • Keep source HTML static. WeasyPrint does not execute JavaScript.
  • Use absolute or file:// paths for local images and fonts.
  • Preserve the original source alongside the PDF so later edits remain possible.
  • Treat page inspection as part of completion, not an optional polish pass.
  • Never silently install dependencies. If PyMuPDF, Pandoc, or WeasyPrint is missing, report the exact requirement.

Output

Use a user-approved destination. When no convention exists, prefer:

outputs/YYYY-MM-DD-descriptor.pdf

Before delivery, report the final page count, output path, and the visual issues checked.

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Read and write Excel workbooks, worksheets, ranges, tables, and charts in OneDrive through Microsoft Graph with managed OAuth.

by byungkyu800 installs42 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván1 installs

More from antreasantoniou

Browse all skills

Turn conversations into grounded decisions

by antreasantoniou1 installs

Design and compose multi-agent graphs for correctness, coverage, or creativity. Use when a task benefits from isolated proposals, explicit arbitration, adversarial verification, committees, recursive review, cross-modal checks, or saturation loops. Applies across agent runtimes; the included JavaScript workflow is one adapter.

by antreasantoniou1 installs

One secure Bitwarden unlock per 24 hours

by antreasantoniou1 installs