What DocStudio is
Core concepts: templates, data, components and output. Getting started in the DocStudio designer user guide.
DocStudio turns a template and data into a document. You design the template visually. A program (or the host application) supplies data. DocStudio merges them and produces HTML, a print layout or a PDF.
Core concepts
| Concept | What it is |
|---|---|
| Template | The design: elements, layout, styles and page settings, stored as JSON. You rarely see the JSON because the designer edits it for you |
| Data | Any JSON. A template reads values from it with paths such as customer.name |
| Element | One building block of the template: text, image, table and so on |
| Binding | A link from an element to a value in the data |
| Expression | A small calculation, for example a sum, a comparison or a formatted date |
| Component | A reusable template that is published once and used in many documents |
| Output | The result: Screen (HTML), Print (browser print) or PDF |
One template, many documents
A template with the text "Hello" followed by the path name produces "Hello Ada" for the data { "name": "Ada" } and "Hello Grace" for { "name": "Grace" }. The same idea scales to invoices, reports, certificates and labels: the design stays and only the data changes.
What the designer is for
The designer is where you build the template. It shows a live preview that uses sample data you provide, so you see a realistic result while you design. The sample data is only for the preview; real documents use real data at generation time.
What you can build
- Reports and statements with tables, totals and repeated groups
- Certificates, labels and forms with exact positions
- Documents in English, Arabic and Urdu, left to right or right to left
What DocStudio is not
DocStudio is not a word processor: there is no free-form text editing on the page, no multi-user editing and no scripting. Templates cannot run code, which is what makes them safe to load from users.
Next: Build your first document.