aiongg a9985b3775 fix: validate every corpus output and fix the two schema failures
compare.py --all now also converts the INDD and INDT files that have no
same-version IDML (any version, either byte order), validates them and
counts converter warnings by kind. validate.sh runs Jing once per schema
instead of once per file, which makes validating the whole corpus take
about 3 minutes.

Two schema failures showed up in files without an IDML:

- Gradient swatch midpoints are stored as positions from the start of
  the gradient. IDML wants them relative to the gap between two stops,
  as for opacity gradient stops. Values outside 13-87 are left out with
  a warning.
- The style kind is a u16, not a u32. One InDesign 7.5 template has a
  non-zero u16 after it, which made 151 character styles paragraph
  styles.
2026-10-07 03:50:08 +00:00

indd-utils

Reads INDD files, the native document format of Adobe® InDesign®, without InDesign. The goal is conversion to IDML, with other outputs (text, JSON, metadata) to follow.

Adobe and InDesign are trademarks of Adobe Inc. This project is not affiliated with or endorsed by Adobe.

Status

Early. The file header (signature, byte order, InDesign version) is decoded. Nothing else is yet.

Use

cargo install --git https://github.com/aiongg/indd-utils
indd info file.indd

Development

  • cargo test runs unit tests and smoke tests on the open-licensed samples in tests/fixtures/.
  • Tests in tests/corpus.rs also run over a local corpus/ directory of sample files if one exists. That directory is git-ignored.
  • python3 -I tools/inventory.py corpus/ lists each sample's InDesign version and whether it has a matching IDML file.
  • Format findings go in docs/format/. Read CLEANROOM.md before contributing.

Licence

MIT. Sample files in tests/fixtures/ keep their own licences; see the README there.

S
Description
Read INDD files without InDesign; convert to IDML
Readme
4.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 83.8%
Python 15.6%
Shell 0.6%