Development

Multimodal signature API

FastAPI API that embeds handwritten, typed, or image-based signatures into PDF and DOCX documents.

1 star2026role: autor únicostatus: activo
procedural cover — real screenshots pendingProcedural cover for the project Multimodal signature API.

01 Summary

Web system for signing PDF and DOCX documents using signatures captured via three methods: canvas strokes (SignaturePad), cursive text fonts, or uploaded images. The FastAPI backend routes by MIME type to injection engines based on PyMuPDF (absolute coordinate positioning in PDF) and python-docx (text-flow insertion in Word), exchanging Base64-encoded documents. Includes a static vanilla JS frontend with previews via pdf.js and draggable positioning.

02 Highlights

  • Three signature capture modes: touch or mouse drawing (SignaturePad), typographic generation with cursive fonts, and image upload.
  • PDF injection via absolute coordinates using PyMuPDF while preserving metadata, and DOCX injection via text flow using python-docx.
  • Documented layered architecture (frontend, API router, injection engines) with SOPs in the architecture/ folder.
  • PDF preview via pdf.js and draggable signature positioning with interact.js, including touch calibration for mobile devices.
  • Ready for serverless deployment on Vercel and Docker containers, complete with test and environment verification scripts.

03 Screenshots