SMF·DOCHUB
Can a prompt replace DocHub?
PDF & documents — form filling and low-stakes signing
Exhibit tracking slip
Verdict
The interesting part of DocHub is not signing, it is form fields. A PDF form is an AcroForm structure with named fields, and reading, filling and flattening it is a solved problem in pypdf. Build that and you have most of DocHub. What stays out of reach is the Google Drive and Gmail integration that puts DocHub one click from where the documents already live.
Exhibit A — The prompt
Received on31.07.2026Build a personal PDF form filler.
The core loop: upload a PDF, and if it carries an AcroForm, read the field names, types and page positions with pypdf and render an HTML form that mirrors them. Fill the fields from that form, then write a flattened copy — appearance streams generated, fields no longer editable — to a new file. Never modify the uploaded original; store it read-only and keep every output as a separate versioned file next to it.
When the PDF has no AcroForm, fall back to placement mode: show the page as an image, let the user drag text boxes, checkmarks and a signature image onto it, and stamp them into a new PDF at the coordinates given. Store the placements as JSON keyed by the document hash so re-opening the same document restores them.
Signature capture is a drawing canvas that produces a transparent PNG, stored once and reusable. Be explicit in the interface that this stamps a picture of a signature into a document and produces no evidence of who drew it or when.
Out of scope: sending a document to a third party to sign, reminder emails, identity verification, and any claim that the result is a qualified or legally binding electronic signature. Those need an evidence trail this build does not produce, and offering them without one is worse than not offering them.
Test with a real government form that uses AcroForm fields and one that is a flat scan.
Opening prefills the prompt — press enter to run it.
Exhibit B — What you lose
- B.1 the Google Drive, Gmail and Workspace integrations
- B.2 sending a document to someone else to sign, with reminders
- B.3 any evidence trail a counterparty would accept
- B.4 the mobile apps
- B.5 shared templates and folders across a team
Prior art
- Stirling PDFLicense: MIT
- DocumensoLicense: AGPL-3.0
Exhibit C — Why people still pay: form-field handling and Google integration
Because DocHub lives inside Gmail and Drive. The document arrives as an attachment, and it is filled, signed and sent back without ever being downloaded — that adjacency is the product, and self-hosting it puts the file back on your disk.
Questions
Can I bring my saved DocHub templates across?
The documents themselves export as ordinary PDFs and open fine. The field mappings and reusable templates do not — DocHub stores those in its own format, and you will re-place fields once per document on first use.
Can I send a document to someone else to sign?
No, and that is a deliberate boundary. Sending to a counterparty means their identity, their consent record and a delivery receipt, which is a different and much larger build. This fills and signs documents that stay with you.
What does it cost to run?
Nothing if it runs on your own machine. On a small VPS, about $5 a month. pypdf and the rendering libraries are free and there is no per-document cost.
What is the one thing that does not survive the rebuild?
The Gmail and Drive adjacency. DocHub's real trick is that the attachment never leaves Google — you open it, fill it, and send it back. Here, every document is a download and an upload.
Related tools
Receipt