Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

postext-idml

Latest version: v0.18.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: drnachio
17 Stars
5 Forks
36 Versions
5.9K Downloads
TypeScript Repo language

Scan summary

postext-idml was last scanned on 23 Nov 2026 at version 0.18.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 36 versions; the latest 5 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 0.18.1.
  • Downloads: 5,884 downloads.

Versions

36 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.18.1 LATEST 23 Nov 2026 No rules fired
0.18.0 23 Nov 2026 No rules fired
0.17.0 23 Nov 2026 No rules fired
0.16.2 21 Nov 2026 Not shown
0.16.1 20 Nov 2026 Not shown

No rules fired in 0.18.1

Findings

Findings for v0.18.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.18.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

postext-idml

InDesign Markup (IDML) for Postext books, in both directions. It writes a book that postext has laid out as an IDML package, which InDesign opens with the pages as the PDF shows them, and it reads an IDML package into a typed model, from which the package's importer makes a Postext book. It runs in the browser or in Node, with no server and without InDesign.

npm install postext postext-idml

postext is a peer dependency: upgrade the two together.

From Postext to InDesign

import { buildBundle, openBundle } from 'postext';
import { idmlDocument } from 'postext-idml';

const bundle = await openBundle(bytes);
const docs = buildBundle(bundle); // one VDTDocument per chapter, in book order

const { bytes: idml, links, fonts } = idmlDocument({
  docs,
  resourceBytes: (fileId) => bundle.files.get(fileId),
  images: 'link',
  onWarning: (w) => console.warn(w.code, w.message),
});

idmlDocument(options) returns { bytes, links, fonts }: the .idml file, the linked pictures and the font files, the last two with a path relative to the IDML file for the caller to write beside it.

  • docs: the laid-out chapters, in book order.
  • resourceBytes(fileId): the bytes of a picture.
  • images: 'embed' (default) keeps the pictures inside the file; 'link' links them to Links/<name> and returns them in links.
  • lineBreaks: 'keep' (default) ends every line where Postext ended it, on the baseline Postext set it on, so InDesign shows the pages as the PDF does; 'reflow' leaves the paragraphs to InDesign's composer, for a book that will be set again there.
  • spreads: 'facing' puts the pages two to a spread about the spine, 'single' one page to a spread. The default is 'facing' for a book with mirrored margins and 'single' for any other.
  • fontFile(family, weight, italic): the font file of a face (TrueType or OpenType bytes). With it a face is named as its file names it, which is how InDesign finds it, and the files come back in fonts as Document fonts/<file>.
  • forms: chips that carry a form field become InDesign form fields (default true).
  • onWarning: what could not be written as it is in the book ({ code, message }).

Rules, boxes, paths and pictures are native page items, tables are InDesign tables, authored CMYK colours are process swatches, spot colours are spot swatches with an ink each (a finish from print.inks kept in the swatch's script label postext:finish, varnish and white set to overprint), the die-cuts are paths on a locked "Die line" layer stroked with the die line's swatch, and the text of each composed frame is one story under a paragraph style named after its box style (chained frames share a story). Inline maths, music and colour swatches are anchored inline objects in their line (inlineObjects: false leaves them out, with a warning), links are InDesign hyperlinks, and with kept lines right-to-left text is written in right-to-left stories. Vertical text (Chinese or Japanese set vertical-rl, a frame with a writing mode of its own) is written in vertical stories, each column of characters a line, with tate-chu-yoko cells, ruby readings and warichu notes on their ranges; what the package does not carry (emphasis dots, kanbun marks) is reported as a text.vertical.* warning.

The command line writes the same package with postext idml and reads one into a new book with postext import-idml.

From InDesign to Postext

import { inspectIdml, readIdml } from 'postext-idml';

const doc = readIdml(bytes); // throws IdmlError for what is no IDML
const summary = inspectIdml(doc);

console.log(summary.pages, summary.readableStories, summary.fonts);
for (const w of doc.warnings) console.warn(w.code, w.message);
  • readIdml(bytes, options?) reads the package into an IdmlDocument: preferences, layers, swatches, fonts, styles, master spreads, spreads with their page items, and stories. Bytes that are no IDML, or a package that cannot be read at all, throw an IdmlError with a code; anything else the reader could not read as written is listed in the document's warnings. The options bound what is read (maxPartBytes, maxTotalBytes, maxParts, maxDepth).
  • inspectIdml(doc) returns a summary for the dialog a host shows before importing: pages and page sizes, masters, layers, stories and the main one, fonts, the styles in use, pictures (linked, embedded, missing), tables and notes, and a list of what will need a second look (attention).

The same entry exports the helpers an importer works with: computed styles and formats, colours, the geometry of page items, master items and reading order.

The importer, idmlToPostext, turns the document read this way into the chapters, configuration and resources of a Postext book. Lines the document keeps (a forced line break at the end of each, as the export writes them) come back as the lines of the book: the importer turns on bodyText.justifyHardBreaks (postext 1.76), which justifies the line before a forced break as InDesign does, so a book exported from Postext and imported again sets the same lines.

Spot swatches come back as spot colours, and those with a finish as entries of print.inks: the finish an export from Postext recorded, else the one the swatch's name suggests (guessInkFinish), which the report lists. The die line (a layer or a swatch named as die lines are: Die line, Die, CutContour, Troquel, Stanzform…) comes back as dieCuts: each hole a die shape placed on the recto of the first leaf it cuts, with leaves for a hole through several, and a path round the page as corners or outline.

What the importer does to keep the pages as the document has them:

  • A paragraph that goes on in another frame is one paragraph. A threaded story is written once and its frames are chained (next on a page, overflow.continueIn to a later one). Where a document cuts the paragraph in two stories (an export writes one story per block, the first piece justified to its last line), the pieces are joined and their frames chained, when both wear one style and the second opens the next column or page.
  • The first line of a frame stands where InDesign's rule puts it (FirstBaselineOffset: ascent, cap height, x-height, leading or a fixed height, never less than the minimum): the difference with Postext's rule (a baseline 0.8 of the leading under the top) goes to the frame's top padding or moves the frame up. Ascent, cap height and x-height are taken from typical proportions, since the importer has no font files; the report says so. Insets, the baseline rule and the vertical justification are read from the frame and from its object style.
  • Master items are carried per master: on composed pages each template holds the items of its page's masters (those of the masters it is based on under them); in a flowing book the main master gives the running heads of the body pages and the master of the chapter openers those of the opener pages.
  • An object anchored at a custom position gets a frame of its own where its rule puts it (composed pages), or hangs at its side of the column with the text beside it (flowing book). A picture typed in a line of a table cell or a caption is an inline symbol (:icon).
  • A cross-reference to a heading or an anchor of the book is written as :ref (its title, its page number), so it follows the book. In a flowing book with no heading style, top-level bookmarks cut the chapters and name them.

Every difference is a finding of result.report, with a count and examples; a loss says what the book shows instead.

A zipped InDesign package

A publisher usually hands over the folder InDesign's File › Package makes, zipped: the document (as .idml when Include IDML is ticked), its fonts in Document fonts/ and its linked pictures in Links/. openIdmlArchive reads that zip:

import { idmlToPostext, openIdmlArchive } from 'postext-idml';

const archive = openIdmlArchive(zipBytes); // throws IdmlError for what is no zip
const path = archive.documents[0]; // the IDML documents, those nearest the root first
const result = idmlToPostext(archive.document(path), {
  linkBytes: (link) => archive.linkBytes(link, path),
  fontFiles: archive.fontFiles(),
});
  • documents lists the IDML documents ('' when the zip is itself an IDML package), indd the .indd documents it holds and cannot be read, and fonts the font files. macOS's __MACOSX/ and ._ entries are left out. Files are uncompressed when asked for.
  • linkBytes(link, document) finds a linked picture by its file name; between files of the same name it takes the one whose folders match the link's path most, then the one nearest the document.
  • fontFiles (an option of idmlToPostext) puts the package's fonts into the book. Each face the text is set in is matched to a file by the PostScript name the document records, else by family and style; the book names the matched files, and the other faces of their families in the package, in config.customFonts, with the files in result.files. Each face of result.fonts carries the file it was matched to. A face with no file (fontNotInPackage), a file the book cannot carry (fontFile.type1, fontFile.collection, fontFile.suitcase, fontFile.woff) and a face whose licence bits forbid embedding (fontRestricted) are findings of the report.
  • readFontFace(name, bytes) reads the names, weight and slant of a TrueType or OpenType file.

Entries

  • postext-idml: everything above.
  • postext-idml/export: the writer alone.
  • postext-idml/read: the reader and its helpers alone.
  • postext-idml/import: the importer alone.

Docs: Programmatic usage.

License

MIT.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm postext-idml

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229