Skip to content
Paged.

Professional publishing, beyond the desktop.

Resources / Journal

The journalFor publishersNo. 10

Headless publishing
without a desktop session

Headless publishing makes pages with no one at a desktop. What Paged’s command line opens, scripts and exports today, and what is not there yet.

Headless publishing is page production with no one at a desktop. A program opens a document, changes it and exports it, driven by a command, a script or another system, and no layout application shows a window: a catalogue, a report or a price list is set and exported by a job, not a person. Paged’s engine runs this way through its command line today; its hosted service is not deployed yet. This piece says what runs, shows a recorded run, and names what is missing.

Who needs it

Teams that make the same kind of page again and again need it: a price card for every product, a section for every region, a report in every language. A designer makes the template once. After that the runs happen when the data changes or at night, and nobody opens a file to start them. Where this runs on InDesign Server today, Paged’s documentation maps the server’s jobs to Paged’s one by one.

The engine without the editor

Paged’s editor runs its engine in the browser. The same engine runs without a browser through paged, its command line, built from the public repository. It opens IDML or .paged files, runs JavaScript against the document through the same paged.* interface the editor’s scripts use, renders pages to PNG and exports IDML, .paged and PDF. It has 52 commands and is stable and tested. It changes the document through the same interface the editor uses, so it cannot make a change the editor could not.

A long-running session is stable and tested, and the engine over HTTP is tested, but may still change. A second command line, for Node, comes from npm as @paged-media/paged and needs no Rust toolchain; it is tested, but may still change.

Kept openFor many small jobs, paged session keeps one engine open and takes a request per line, and paged engine-serve answers one HTTP call per job.

Kept open
For many small jobs, paged session keeps one engine open and takes a request per line, and paged engine-serve answers one HTTP call per job.

The steps, from a shell

  1. Build paged from a checkout of the repository, or run the Node command from npm.
  2. Start from a template: IDML exported from InDesign, a .paged file saved in the editor, or a blank page from paged new.
  3. Register the faces the document sets in with --fonts. Text no registered face answers for falls back to Inter, which the command line bundles; --no-default-font turns that off, so a missing font is reported instead of replaced.
  4. Change the document with a script: paged script runs it and saves the result.
  5. Export: paged export writes IDML, .paged or PDF, and paged render writes a page as a PNG at the resolution asked for.

Saving back to IDML is stable and tested, and page images are stable and tested. To make one document per record of a data file, the Node command’s generate verb is in release v0.77.0, which npm does not serve yet (npm has 0.74.2, checked 21 November 2026) (the release workflow).

For print, paged export --format pdf --standard pdfx4 writes PDF/X-4 against a CMYK profile you give it with --cmyk-profile, and --marks adds crop and registration marks, colour bars and page information. The export prints its own findings as it writes, such as a picture it could not decode. PDF export is stable and tested; the automated production page shows how print output fits into the wider server-side workflow.

The proof

Below is Paged’s own demonstration: a shell session recorded for real, with no editor and no browser open. It makes a one-page card with paged new, runs a script that adds a text frame, exports the card as PDF and as IDML, and renders page 1 at 150 dpi. The last command, file, confirms what was written. Every line under a command is what that command printed.

~/card $ paged new -o card.paged
card.paged — one 612 × 792 pt page, paged, 6124 bytes
~/card $ paged script card.paged card.js --font Inter.ttf -o card.paged
[log] added textFrame:u1 to page 1
card.paged — paged, 7329 bytes
~/card $ paged export card.paged --format pdf --font Inter.ttf -o card.pdf
card.pdf — pdf, 5134 bytes
~/card $ paged export card.paged --format idml --font Inter.ttf -o card.idml
card.idml — idml, 4391 bytes
~/card $ paged render card.paged --page 1 --dpi 150 --font Inter.ttf -o page-1.png
page-1.png — page 1 at 150 dpi, 1275×1650 px
~/card $ file card.pdf card.idml page-1.png
card.pdf:   PDF document, version 1.7, 1 pages
card.idml:  Zip data (MIME type "application/vnd.adobe.indesign-idml-package"?)
page-1.png: PNG image data, 1275 x 1650, 8-bit/color RGBA, non-interlaced
The engine’s command line, run for real on a one-page card: a script writes the page, then the engine exports it as PDF and IDML and renders page 1. The PDF here is plain PDF 1.7; the session uses none of the print options above.Recorded with the command line at 869b400,

The developers film ends on the same engine in a terminal. Its last scene is a recorded session too: a script authors a card, a query lists its frame by its address, and the card is exported as IDML.

  1. 0:07A script, step by step.
  2. 0:26Ask the document anything.
  3. 0:46A manifest, a panel.
  4. 1:02The same engine, headless.

One engine, from a script, a plugin or a shell

1:31, recorded

A script stepped in the playground, a query and a batch in the Script panel, a plugin's manifest and panel, and the paged command line authoring, querying and exporting a document with no browser at all.

Recording details

Recorded on 21 November 2026 in the paged editor (commit e023cf142), real time apart from the cuts marked in the film. It shows sample publications from archive.org, used for illustrative and demonstration purposes only; they remain their publishers' property (paged.media/imprint). Voice: synthetic (Qwen3-TTS, Aiden). The commit: e023cf1.

Transcript

This is paged for developers: one engine, driven from a script, a plugin or a shell.

The playground runs a script against the real editor, with its source beside it.

Pause it, step through it one line at a time, or let it play.

In the Script panel, one query lists every frame on the page, by its address.

One batch call restyles all of them, as a single step.

So a single undo takes all of it back.

A plugin is a manifest and its code. The manifest declares the panels it brings.

Loaded into the editor, its panels open like any other.

And from a shell, the same engine authors, queries and exports a document, with no browser at all.

Every surface, one engine. Open the playground at play.paged.media.

The film as an MP4 file (H.264, 11 MB)Captions (WebVTT)

What it does not prove

It is not a service you can call. paged.server, whose headless lane would run the engine in a container, is built in the repository and not deployed anywhere yet (checked 21 November 2026) (server ADR 953). Running the command line on your own machines, scheduling its jobs and keeping its fonts and profiles in place are yours to do.

It does not read .indd files or run ExtendScript: export IDML from InDesign once, and rewrite scripts against paged.*. The Node command from npm carries no built-in modules, so it exports but does not merge records; merging runs in a checkout of the repository. The session above is one card on one machine: it measures nothing about throughput, and no time saving has been measured.

Next steps

The automation page sets out headless production with Paged, with the record’s state for each job. The command reference is in the docs, at the paged command line, and the docs’ InDesign Server comparison maps the server jobs one by one. To run your own template through it with us, ask for a workflow review: will Paged work with your publication?

paged.media, For publishersHeadless publishing without a desktop session,

Searchpaged.media, Docs and IDML

Esc