# typed-drawn-signatures

Stamp a typed (script font) or drawn (PNG) signature with name, date and doc id onto a PDF page.

- **Space:** e-signing-public (https://github.com/Tech-Realm/space-e-signing-public/tree/main/typed-drawn-signatures)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, pypdf, chrome, pdftotext
- **Routes:** local-pypdf, self-hosted-esign, docusign; checks: 3
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use e-signing-public/typed-drawn-signatures` or MCP `get_pack e-signing-public/typed-drawn-signatures`
- **Files:** CHANGELOG.md, code/make_fixture.py, code/stamp_signature.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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

1. Get consent and identity first (email link, account) and log `viewed` in the audit trail.
2. Typed: `python3 code/stamp_signature.py in.pdf out.pdf --name 'Full Name' --page 1 --x 72 --y 100 --doc-id ID`.
3. Drawn: capture a PNG (canvas `toDataURL`), pass `--image sig.png`.
4. Log `signed` with `--doc out.pdf` in the audit trail (see audit-trail pack).
5. 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.



---

Canonical URL: https://logicpacks.io/packs/e-signing-public/typed-drawn-signatures

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
