DataMagik Documents
Create, version, and generate professional PDF and label templates with HTML, CSS, and Go template syntax.
Design, automate and deliver professional PDFs and labels.
Design on-brand document templates once, then generate and deliver them automatically from live Plex data — inside Plex or on a schedule.

What it is
A template is HTML and CSS with placeholders that DataMagik fills from your data at generation time — {{.customerName}} and the rest of Go's template language: variables, conditionals, ranges over line items, and a library of string, date and formatting functions.
That is a deliberate choice rather than a limitation. Pixel-exact invoices, packing lists and labels are hard to reach by dragging boxes, and a document that has to line up with a pre-printed form or a customer's spec needs real control over the markup. If you can write a web page, you can write a DataMagik document.
The editor puts the code on the left and a live preview on the right, rendered against sample JSON you control — save with Ctrl+S, re-render with Ctrl+Shift+P.
Not only paperwork
Eight barcode symbologies are built into the template language and render straight into the document: Code 128, Code 39, QR, Data Matrix, EAN-13, EAN-8, PDF417 and Interleaved 2 of 5. One function call places one.
Labels are a first-class output, not a workaround: the Document Designer covers ZPL label creation and test printing, so a label template can be proved before it reaches a printer and a roll of stock.
Templates can also draw charts, pull from User Defined Tables, and consume serial number series.
Getting a document out
Generation is queued and produced in the background, then hands back a link or the file itself — so a large run does not block the thing that asked for it.
Fire a document from a button in Plex, or from a workflow that has just finished doing something.
Call documents.generate from a script, so the document is one step in a longer piece of logic.
Generate from anything that can make an HTTP request, for systems that live outside DataMagik.
Governance
Templates use a branch workflow — draft on a development branch, and promote when it is right — so the invoice your customers receive does not change the moment someone opens the editor.
An approval workflow can require sign-off before a template reaches production, every version is tracked, and a full audit trail records who changed what and when. Designing and editing templates requires the Builder permission.
Invoices, packing lists, certificates and labels — as PDF, from your live Plex data.
See the Document DesignerCreate, version, and generate professional PDF and label templates with HTML, CSS, and Go template syntax.
Create and manage the PDF/document templates DataMagik fills with your data.