Skip to content

Packs / documents-public

certificate

Certificate of appreciation (A4 landscape, script name and signature) from an HTML template to a 1-page PDF.

Install

logicpacks pack use documents-public/certificate
get_pack documents-public/certificate

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: chrome-localweasyprint-localpandoc-local
  • Checks: 3 in outcome/checks.yaml
  • Code: certificate.html
  • Tools: python3, chrome

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A crisp one-page landscape certificate with the right recipient, date and signatory, rendered from HTML (no design app).

Steps

  1. Copy code/certificate.html; fill RECIPIENT, BODY, SIGNATORY, ROLE, DATE (use   between words of the name so the script font doesn't wrap).
  2. python3 ../tools/fill.py code/certificate.html values.json out/certificate.html.
  3. python3 ../tools/html2pdf.py out/certificate.html out/certificate.pdf.
  4. python3 ../tools/check_doc.py out/certificate.pdf --pages 1:1; preview: qlmanage -t -s 1600 -o . out/certificate.pdf (macOS).
  5. For a jointly issued certificate add a second signature block; otherwise keep one signature + date.

Edge cases

  • Partner logos: keep width/height auto, 34 px; don't stretch.
  • Script fonts differ per OS (Snell Roundhand on macOS, Brush Script fallback).

Don'ts

  • Don't add a partner's signature to our own appreciation certificate.
  • Don't make the wordmark an image; it is live text so it stays crisp.
  • Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.
  • Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.