DataMagik Documents
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
PDF templates written in HTML, CSS and Go template syntax
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
Barcodes, labels and ZPL
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
Three ways to generate, all asynchronous
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.
From an automation
Fire a document from a button in Plex, or from a workflow that has just finished doing something.
From the Script Engine
Call documents.generate from a script, so the document is one step in a longer piece of logic.
From the API
Generate from anything that can make an HTTP request, for systems that live outside DataMagik.
Governance
Documents change under review, not in place
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.
Produce the document your customer expects
Invoices, packing lists, certificates and labels — as PDF, from your live Plex data.
See the Document DesignerRelated Documentation
View All DocsDataMagik Documents
Create, version, and generate professional PDF and label templates with HTML, CSS, and Go template syntax.
Using the Document Designer
Create and manage the PDF/document templates DataMagik fills with your data.
Go Template Syntax Guide
Visual ZPL label designer
Design Zebra (ZPL) label templates visually, with RFID, printer settings, an exact preview and automatic scaling to each printer's DPI.
Plex Label Designer
Design Plex customer label formats in the browser and save them straight back to Plex.