DataMagik Documents

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.

DataMagik Documents
Product DataMagik Documents
Type Overview
Updated Aug 24, 2026

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.

A generated AR invoice PDF with bill-to and ship-to blocks, line items and totals
A generated invoice. Bill-to and ship-to blocks, line items, and totals — laid out in CSS, filled from live data.
A generated part label with a QR code, lot number, date, serial and vendor fields
A part label with a QR code, lot, date and serial — the same template language, a different page size.

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.

The Document Designer showing the template list with categories, versions and preview
The Document Designer: templates by category on the left, preview and version details on the right.

Produce the document your customer expects

Invoices, packing lists, certificates and labels — as PDF, from your live Plex data.

See the Document Designer

Related Documentation

View All Docs
DataMagik Documents

DataMagik Documents

Create, version, and generate professional PDF and label templates with HTML, CSS, and Go template syntax.

Jul 21, 2026 Read More
DataMagik Documents

Using the Document Designer

Create and manage the PDF/document templates DataMagik fills with your data.

Jul 21, 2026 Read More