Documents

Document Templates

Letter — Correspondence preview
Offer — Service Proposals preview
Invoice — Client Billing preview
Terms of Service — Legal preview
business-card-print-back preview
business-card-print-front preview

Letter — Correspondence

Business correspondence, briefings, status updates. Optional meta strip (recipient, date, reference).

npx tsx generators/pdf.ts content.md --type letter --to "Muster GmbH" --ref "EV-2026-001" -o letter.pdf

Parameters

ParamTypeRequiredNotes
markdown markdown required Body content (required for documents).
recipient object optional name, company, address, uid, private, extra_lines
date string optional ISO YYYY-MM-DD or formatted. Defaults to today.
ref string optional Reference number (e.g. invoice number).
subject string optional Defaults to first H1 in body.
eyebrow string optional
confidential boolean optional
lang 'de' | 'en' optional Default: de
attachPath path optional PDF to append at end.

Offer — Service Proposals

Structured service offers with scope, timeline, and pricing table.

npx tsx generators/pdf.ts proposal.md --type offer --to "Muster GmbH" --ref "EV-2026-042" -o offer.pdf

Parameters

ParamTypeRequiredNotes
markdown markdown required Body content (required for documents).
recipient object required name, company, address, uid, private, extra_lines
date string required ISO YYYY-MM-DD or formatted. Defaults to today.
ref string optional Reference number (e.g. invoice number).
subject string optional Defaults to first H1 in body.
eyebrow string optional
confidential boolean optional
lang 'de' | 'en' optional Default: de
attachPath path optional PDF to append at end.

Invoice — Client Billing

Client invoices with line items, totals, and payment terms. Required meta strip.

npx tsx generators/pdf.ts items.md --type invoice --to "Muster GmbH" --ref "RE-2026-001" -o invoice.pdf

Parameters

ParamTypeRequiredNotes
markdown markdown required Body content (required for documents).
recipient object required name, company, address, uid, private, extra_lines
date string required ISO YYYY-MM-DD or formatted. Defaults to today.
ref string required Reference number (e.g. invoice number).
subject string optional Defaults to first H1 in body.
eyebrow string optional
confidential boolean optional
lang 'de' | 'en' optional Default: de
attachPath path optional PDF to append at end.

Terms of Service — Legal

Contracts, AGBs, legal documents. No meta strip — clean document layout.

npx tsx generators/pdf.ts terms.md --type tos -o agb.pdf

Parameters

ParamTypeRequiredNotes
markdown markdown required Body content (required for documents).
recipient object optional name, company, address, uid, private, extra_lines
date string optional ISO YYYY-MM-DD or formatted. Defaults to today.
ref string optional Reference number (e.g. invoice number).
subject string optional Defaults to first H1 in body.
eyebrow string optional
confidential boolean optional
lang 'de' | 'en' optional Default: de
attachPath path optional PDF to append at end.

business-card-print-back

Parameters

No parameters.

business-card-print-front

Parameters

No parameters.