Packs / e-signing-public
typed-drawn-signatures
Stamp a typed (script font) or drawn (PNG) signature with name, date and doc id onto a PDF page.
Install
logicpacks pack use e-signing-public/typed-drawn-signaturesget_pack e-signing-public/typed-drawn-signaturesThe 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:
local-pypdfself-hosted-esigndocusign - Checks: 3 in
outcome/checks.yaml - Code:
make_fixture.pystamp_signature.py - Tools: python3, pypdf, chrome, pdftotext
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A visibly signed PDF where the mark, signer name and date sit exactly in the signature area, with the document hash logged.
Steps
- Get consent and identity first (email link, account) and log
viewedin the audit trail. - Typed:
python3 code/stamp_signature.py in.pdf out.pdf --name 'Full Name' --page 1 --x 72 --y 100 --doc-id ID. - Drawn: capture a PNG (canvas
toDataURL), pass--image sig.png. - Log
signedwith--doc out.pdfin the audit trail (see audit-trail pack). - Verify text landed:
pdftotext out.pdf - | grep 'Signed electronically'.
Edge cases
- Script fonts differ per OS; the drawn PNG is identical everywhere.
- Coordinates are from the bottom-left in points.
- E-signature law differs by country (US ESIGN Act/UETA, EU eIDAS, Pakistan Electronic Transactions Ordinance 2002): a typed or drawn mark plus consent and an audit trail is a simple electronic signature; higher assurance needs certificate-based (PAdES) signatures. Confirm what the counterparty or court needs.
Don'ts
- Don't store signer IDs, IPs or documents of real clients in this repo.
- Don't call a typed/drawn stamp a 'digital signature'; it is an electronic signature mark.