- 1 · Collect
- Offline application
- 2 · Exchange
- Structured JSON
- 3 · Produce
- PDF from your service
The situation.
An organisation sends people a form before an appointment, inspection or enrolment. A fixed document can be awkward when answers affect later questions, when calculations help explain a choice, or when the recipient needs structured data instead of another document to retype.
A standalone Gramlot page is a candidate for that collection step. It can give the person a browser interface with local bindings, calculations and validation. The serverless build uses JavaScript pages; a Python page needs a Python host.
A useful workflow, step by step.
First, distribute a self-contained build with its required resources. The person completes the locally supported parts of the form, sees derived values and corrects invalid entries. An explicit save action creates a typed draft that can be restored later.
When ready, the person exports JSON or submits through an available connection. A receiving service validates the payload, applies authoritative rules and produces a PDF or a link to one. The application then needs a clear confirmation and a way to access that output.
Why the PDF becomes an output.
The person works with controls and explanations suited to entering information. The receiving system works with named values and an explicit schema. A PDF can still provide the fixed, printable result that the organisation wants.
This separates the interactive collection experience from the final document layout. A change to the printable output need not turn every input field into a coordinate on a page.
What is already available, and what you build.
The runtime, Worker packaging, binding, field validation, typed save/restore and JSON handoff are available building blocks. This scenario is a design example, not a shipped end-to-end PDF application.
You provide the questions, completion rules, receiving endpoint, authentication where needed, PDF generation and response handling. You also test the deployment’s CORS and content-security policies. Automatic draft persistence, offline submission queues and digital signatures are not implied.
Plan the first pilot
What is the smallest useful version?
Reveal the explanation
One short form, explicit Save and Restore, a reviewed JSON schema and a test receiver. Verify the complete handoff before adding complex sections or a final PDF layout.
Try the working example and read the full contract
KEEP EXPLORING