Paged Docs / use-cases
Coming from Adobe InDesign Server
Paged as an open alternative to Adobe InDesign Server — the server jobs mapped one by one, and a template plus CSV turned into PDF/X-4 from the command line.
Reviewed against engine v0.77.0
Can Paged do the jobs a team runs on Adobe InDesign Server?
In short Many of them, and in the open. Paged's engine runs without a desktop
application: the paged command line and its HTTP engine service open IDML, run
JavaScript against the document, merge records into a template and write PDF/X-4,
IDML, .paged and PNG. It is one program you build or install, with no seat or
licence server in the loop. Some jobs are not covered yet: it does not read .indd
files, it does not run ExtendScript, and Data Merge from the command line needs a
source checkout. The table below says which job is which, with each status read
from the capability record.
The jobs, one by one
Each badge is the capability's live status in the record (shipped, experimental or planned, and whether its tests pass). A row without a badge is one the record does not track, and its status is said in words.
| Job on InDesign Server | With Paged | Status |
|---|---|---|
| Open a template without a desktop app | paged opens IDML and .paged headless; a .paged file is itself a valid IDML package | Shipped · verified Shipped · verified |
| Save back as IDML | paged export --format idml; an unchanged document re-serializes byte for byte | Shipped · verified |
Open native .indd files | Not supported: export IDML from InDesign once, then work from IDML | Not supported |
| Scripted layout changes | JavaScript against the paged.* API: paged script, paged set, paged invoke | Shipped · verified Shipped · verified |
Run existing ExtendScript (.jsx) or UXP scripts | No compatibility layer: scripts are rewritten against paged.*, which has its own object model | Not supported |
| A long-running engine process to send work to | paged session speaks NDJSON on stdin/stdout | Shipped · verified |
| An engine service to call over HTTP | paged engine-serve answers POST /run, one stateless call per job, and exports PDF/X-4 in the call (see the worked example) | Experimental · verified |
| Data Merge: template + CSV into a merged document | paged-node merge (single or multiple records per page, one document per record) | Shipped · verified Experimental · verified |
| Catalogue and per-group batch runs | paged-node generate --per record|group writes one finished file per record or per group of records (on main, next release); paged.data's record flow lays out catalogues | Shipped · verified |
| PDF and PDF/X-4 export | paged export --standard pdfx4 --cmyk-profile …, fonts subset and embedded | Shipped · verified Shipped · verified |
| Printer's marks and bleed | paged export --marks | Shipped · verified |
| Tagged PDF and bookmarks | paged export --tagged --bookmarks | Experimental · verified |
| Page images | paged render writes PNG at any resolution; there is no JPEG or EPS page export | Shipped · verified |
| Preflight before output | Export reports its findings; paged-node preflight runs the exporter's checks on their own and exits 1 on an error (on main, next release) | Shipped · verified |
| Package for output (links and fonts) | paged package writes the package folder and its report; on main, with the .paged beside the IDML, and as paged-node package from npm too | Experimental · verified |
| Fonts on the server | --fonts <dir> registers every face in a folder; both command lines fall back to a bundled face (Inter; in the npm package from 0.74.2), and --no-default-font turns that off | Shipped · verified |
| Snippets, InCopy files and books | Not yet | Planned Planned |
| A hosted service with accounts and a queue | paged.server's headless lane runs paged engine-serve in a container; it is not deployed yet | In development |
Licensing. The engine is AGPL-3.0 or PMEL (engine licence: paged main cb11c53f4ad5566babf157226eba27d9ae8d1be1, 23 Nov 2026). Running it on as many servers or cores as you need costs nothing under the open licence; the commercial licence is there when its terms do not fit.
Worked example: a template and a CSV to PDF/X-4
The commands below were run against the engine built from the main branch after v0.74.2. They make a three-field price card, merge three records into it and export print PDF.
1. Build the tools
# The Rust command line, from a checkout of paged-media/paged
cd engine/core && cargo build --release -p paged-cli # → target/release/paged
# Data Merge runs in the Node command line over the paged.data module
bun install
moon run data:wasm # paged.data's engine, its SQL store includedIn the steps below, paged is that binary and paged-node is
bun src/bin.ts run in apps/cli, where the paged.data module resolves. The
published @paged-media/paged package carries the same Node
command without paged.data, so it exports (PDF/X-4 too, from 0.74.2:
--pdf-standard pdfx4 --cmyk-profile <file.icc>) but does not merge.
2. Make the template
A template is any IDML whose text frames hold <<field>> placeholders, the form
InDesign's Data Merge uses. This script makes one on a blank A4 page:
const page = JSON.parse(paged.pages())[0].selfId;
const fields = [
[[72, 72, 120, 400], '<<name>>'],
[[124, 72, 150, 400], 'SKU <<sku>>'],
[[154, 72, 180, 400], '<<price>> EUR'],
];
for (const [bounds, text] of fields) {
paged.insertTextFrame(page, bounds);
const stories = JSON.parse(paged.stories());
paged.insertText(stories[stories.length - 1].selfId, 0, text);
}paged new --size a4 --format idml -o blank.idml
paged script blank.idml make-template.js -o template.idml --render template.png3. Merge the records
name,sku,price
Notebook A5 dotted,NB-105,9.90
Fountain pen,FP-220,34.00
Pencil set (12),PS-012,7.50paged-node merge template.idml --data products.csv --out out --format paged \
--plugins=@paged-media/data{ "records": 3, "format": "paged",
"outputs": [{ "path": "out/template-merged.paged", "pages": 3, "records": 3, "overset": [],
"bytes": 14953 }] }--per-record writes one document per record instead, and
--records-per-page multiple lays several records on a page, rows or columns first.
On main (next release), paged-node generate is the batch verb: one finished
file per record, or per group of records that share a field, each written
straight to PDF through the editor's own exporter when paged.publish is loaded:
paged-node generate template.idml --data products.csv --out cards --format pdf \
--plugins=@paged-media/data,@paged-media/publish
# cards/template-1.pdf, cards/template-2.pdf, cards/template-3.pdf--per group --by <field> writes one file per group instead.
See paged generate.
4. Export PDF/X-4
PDF/X-4 needs an output intent, so give the press's CMYK profile:
paged export out/template-merged.paged --standard pdfx4 \
--cmyk-profile press.icc --output-condition "Your press condition" -o catalogue.pdfThe result is a three-page PDF/X-4 with the profile as its output intent and the text as real, embedded text.
The same job over HTTP
paged engine-serve keeps no state: each call brings the document, an optional
script and the CMYK profile, and asks for a rendered page and the PDF/X-4 back.
Here a script fills the template's three fields for one record:
const record = { name: 'Desk lamp', sku: 'DL-300', price: '49.00' };
const lines = [record.name, 'SKU ' + record.sku, record.price + ' EUR'];
JSON.parse(paged.stories()).forEach((story, i) => {
paged.deleteRange(story.selfId, 0, story.characterCount);
paged.insertText(story.selfId, 0, lines[i]);
});
console.log('filled', lines.length, 'fields');paged engine-serve --port 8787 --workers 4 &
jq -n --rawfile script fill.js --arg file "$(base64 -i template.idml)" \
--arg icc "$(base64 -i press.icc)" \
'{file: $file, script: $script, cmykProfile: $icc,
render: {page: 1, dpi: 72},
export: {format: "pdf", pdf: {standard: "pdfx4"}}}' > call.json
curl -s -X POST localhost:8787/run -H 'content-type: application/json' \
--data-binary @call.json > reply.json
jq '{output, error}' reply.json # { "output": ["[log] filled 3 fields"], "error": null }
jq -r .file reply.json | base64 -d > lamp.pdf
jq -r .png reply.json | base64 -d > lamp.pngexport also takes true (the .paged), a format name (paged, pdf, idml) or
a list of these; a list answers files: [{format, file}] in order. A
cmykProfile that is not an ICC CMYK profile is answered 400 with a JSON error,
and a server started with such a --cmyk-profile refuses to start.
Each call runs on an engine of its own. --workers calls run at once (default:
the machine's parallelism), up to --queue more wait (default 64), and one more is
answered 503 straight away. Any instance can answer any call, so more throughput
is more instances behind a load balancer.
Text a script adds to a document that had none, and the check on cmykProfile,
were fixed on main after v0.74.2. Built from v0.74.2, such text comes back
without a font and an empty profile gives a broken output intent.
What to check before you move a workflow
- Fonts. The bundled face is a fallback, so text in families you have not
registered is set in Inter. Register your real faces with
--fonts(or bind one with--font-family);--no-default-fontshows what a document is missing. - Linked images.
pageddoes not resolveLinks/…files from the disk; put pictures in withpaged place, or name image fields in a merge (--image-field,--image-base). - Numbers in data. A merge reads CSV fields as written, so
9.90stays9.90. To sort a merge numerically, cast in its query (SQLite's dialect):--query 'SELECT * FROM "data" ORDER BY CAST(price AS DOUBLE)'. - Text that does not fit. A merge's
oversetlists the records whose text overflowed. In the editor, paged.data also lists overset text, missing or low-resolution pictures and empty values in the Problems panel (onmain, experimental). - Scripts. Plan the port from ExtendScript as a rewrite; the scripting reference lists every function and path.
Related
- Command line (paged)IntermediateII· referenceevery command and flag, including
engine-serve,sessionandmcp. - Scripting with paged.*IntermediateII· explanationthe API the scripts above use.
- paged generateIntermediateII· referenceand preflight and package — batches, checks and print handoff from the Node command line.
- paged.dataIntermediateII· explanationbindings, record flow and Data Merge.
- paged.serverIntermediateII· explanationthe remote whose headless lane runs the engine service.
- Automated & data-driven publishingIntermediateII· explanationand Paged vs Adobe InDesign.
- On paged.media: the automation serverand a review of your batch workflow.
Adobe, InDesign and InDesign Server are trademarks of Adobe. Paged is independent and is not affiliated with or endorsed by Adobe; the names are used only to describe compatibility and the jobs compared.
Frequently asked questions
Is Paged a drop-in replacement for InDesign Server? No. It does the same kinds of job with its own command line, engine service and JavaScript API. Templates move as IDML; scripts are rewritten.
Does it run on Linux and in containers?
The engine is a Rust program with no desktop dependency. paged.server's headless
lane defines a container for paged engine-serve; it is not built or deployed yet.
Can it open .indd files?
No. Paged reads and writes IDML, InDesign's open interchange format.
Automated & data-driven publishing
Generate catalogs, datasheets, and documents from exported data — scriptable, headless publishing with Paged's open IDML platform.
Repositories
Where paged's code lives — one public monorepo for the engine, editor, server, viewer, modules and extension SDK, plus the registry, the docs and the brand kit.