Polotno

VARIABLE DATA PRINTING

Variable data printing SDK – personalized print PDFs from a template and a spreadsheet

Build variable data printing into your product: a template editor your team and customers use, fields filled from a CSV, CRM or API, and one print-ready PDF per record or one file for the whole run.

Polotno SDK is a variable data printing engine you embed: a visual template editor, fields marked inside the design, and a renderer that fills the template once per record and exports print-ready PDF, PDF/X or PNG. Direct mail, badges, labels, certificates and business cards come from one template and a data source, in your app, under your brand.

VDP without a desktop plugin

Classic VDP lives in InDesign plugins and print-shop software: a designer builds the template on a desktop, someone exports a CSV, and a server merges them overnight. Products that sell personalized print need the same thing inside the browser: a customer or a marketer edits the template, previews it with real rows, and the run renders on demand. Polotno's design JSON is a template format that both the editor and the renderer read.

Key features

Fields marked in the design

Template variables live in the design itself: a {{name}} token in text prints the value in the token's style, and bindings set an image, a color or the visibility of an element per record. A VIP ribbon shows only on the badges that need it; each recipient's photo is cropped to its frame with the focus point kept in view.

A template editor people can use

The Variables panel lists a template's fields, and a button on the selected text inserts one at the cursor, so a marketer builds the template on the canvas instead of a developer editing coordinates. Your code reads the fields back to build the import form or the column mapping.

Fill from any data source

A CSV, a spreadsheet paste, a CRM segment, an order or an API call: each record is a set of values. The fill runs in the browser for previews or in Node.js for the run, and reports missing or invalid values per record so a broken row does not print silently.

Long values that still fit

Names and addresses vary in length. Text fitting shrinks a long value to a floor you set and wraps it inside its box, so "Aleksandra Konstantinopolskaya-Fernandez" and "Li An" both typeset.

Press-ready output at volume

Render one PDF per record, or put every record's pages in one design for a single file for the press. Output can be PDF/X-4 or PDF/X-1a with CMYK, spot inks and crop marks. Send each design to the Cloud Render API, which renders through its built-in color profiles, or run the vector export package on your servers to embed your printer's own ICC profile.

Import InDesign templates

Teams with existing InDesign templates import IDML as editable designs and mark the fields there, instead of rebuilding the library. See InDesign Data Merge, and when to automate it instead.

See it working

Example use cases

  • Direct mail platforms turning a CRM segment into personalized postcards and letters. See direct mail automation workflows.
  • Print shops offering self-serve business cards, name badges and certificates to corporate clients.
  • Event platforms printing badges and tickets from registrations.
  • Label and packaging runs with batch numbers, serials and QR codes. See QR codes and barcodes in automated design pipelines.
  • Schools and photo studios producing a personalized product per student.

Developer benefits

  • One JSON template for the editor, the preview and the press run.
  • Filling a template and listing its fields work the same in the browser and in Node.js.
  • No coordinate-based PDF code to maintain when the design changes.
  • The bulk generation tutorial takes a CSV to a folder of PDFs in Node.js.

FAQ

What is variable data printing?

Printing a run where each copy differs: a name, an address, a photo, a code, an offer. One template holds the layout; the data decides what changes per copy. Our guide to VDP covers the workflow end to end.

Can non-developers build the templates?

Yes. The Variables panel lists the fields, a button on the selected text inserts one, and the template is an ordinary design your team edits.

Can images and colors change per record, not just text?

Yes. Bindings set an element's image source, color or visibility from a field, so a photo, an accent color or a conditional badge changes per row.

Does it output one PDF or many?

Either. Render a file per record, or assemble every record's pages into one design and export a single multi-page PDF.

How do I stop a broken row from printing?

The fill reports missing and invalid values per record, and a strict mode turns them into errors, so your pipeline can stop or skip the row before rendering.

Related reading

Embed creative infrastructure into your product

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai