DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Print color: PDF/X-1a in the roadmap and parity docs
aiongg627971a07245
diff --git a/ROADMAP.md b/ROADMAP.mdindex 49892bed2..82da9fd22 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -348,6 +348,7 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.mNewest first.+- **2026-10-20** · PDF/X-1a:2003 export (craft-libs#194): `file.exportPdf {standard: "x1a"}`, the Export PDF dialog's PDF/X-1a:2003 preset and standard. The PDF/X-4 print file is flattened in its inks by craft-prepress (no transparency; spot, process, overprint and live text kept; complex regions as DeviceN images at the Transparency Flattener preset's resolution), then written as PDF 1.4 with the X-1a identification and checked; `validate-pdf --standard x1a`. Soft drop shadows reach the flattener in their swatch's inks; other soft effects are still RGB images. No readiness percentage change.- **2026-10-20** · Print color (craft-libs#190): CMYK print PDFs blend in DeviceCMYK through craft-pdf's print settings instead of byte rewrites, with the CMYK working space as the output intent in PDF/X-4 only; overprint (Overprint Fill, Stroke and Gap, overprinting text, 100% [Black]) is written as `/op` `/OP` `/OPM 1`; Knockout Group writes `/K true` instead of becoming an image; File › Print prints the PDF Export PDF writes. No readiness percentage change.- **2026-10-20** · Spot gradients print on their plates. A gradient stop keeps the swatch it was given (Gradient panel drop, `swatch.create {gradient}`, `object.gradient`, IDML `StopColor`), following its renames and edits. PDF export shades one spot with its tints or [Paper] as a Separation, and a spot with process inks or a second spot as DeviceN; a process gradient to [Paper] prints in DeviceCMYK. Documents with plain-color stops export as before. No readiness percentage change.- **2026-10-16** · Type › Reload Fonts (`font.reload`): fonts installed, edited or removed while DesignCraft runs are read again without a restart, and the open documents recompose with them (#328, #547). An edited font file is noticed by its length and modification time; bundled, added and document fonts stay as they are. InDesign does this by itself, so noticing changes automatically is still open (gap 6). No readiness percentage change.diff --git a/docs/file-format-parity.md b/docs/file-format-parity.mdindex 507358dec..30a4448ee 100644--- a/docs/file-format-parity.md+++ b/docs/file-format-parity.md@@ -41,7 +41,7 @@ layer survive interchange; literal XML and round-trip tests are in| Format | Ext | InDesign | DesignCraft | Fidelity / tests | Weight ||---|---|---|---|---|---|-| PDF (print) | `.pdf` | ✓ all presets, PDF/X-1a/3/4, PDF/A, PDF/UA | ✓ krilla: real text with subset fonts, DeviceCMYK/RGB, spot Separations, bleed/slug, marks, spreads, compression options, remembered settings (#196); **PDF/X-4** with output intent and a validator (#223, #200); **PDF/A-2b**; tagged PDF | 53 tests in `crates/pdf`; no PDF/X-1a or X-3 (needs flattening to PDF 1.3/1.4); no presets / `.joboptions`; no external validator (veraPDF / callas) in CI | 18% |+| PDF (print) | `.pdf` | ✓ all presets, PDF/X-1a/3/4, PDF/A, PDF/UA | ✓ krilla: real text with subset fonts, DeviceCMYK/RGB, spot Separations, bleed/slug, marks, spreads, compression options, remembered settings (#196); **PDF/X-4** with output intent and a validator (#223, #200); **PDF/A-2b**; tagged PDF; **PDF/X-1a:2003** flattened in its inks by craft-prepress | 53 tests in `crates/pdf`; no PDF/X-3; no presets / `.joboptions`; no external validator (veraPDF / callas) in CI | 18% || PDF (interactive) | `.pdf` | ✓ | ✓ links, bookmarks, buttons, AcroForm fields, page transitions, object states | | 2% || JPEG / PNG | `.jpg`, `.png` | ✓ | PNG from the UI; JPEG from the CLI only | no resolution / colour space options dialog for JPEG | 3% || EPUB reflowable | `.epub` | ✓ | ✓ stories in article order, tables, footnotes and endnotes, CSS from styles, images, nav | | 2% |@@ -103,7 +103,7 @@ up to 30 points.|---|---|| INDD real-file corpus, metric, fixes (#21, #114) | 10–30 || IDML real-file corpus, metric, fixes (#193, #338, #339, #340) | 60–100 |-| PDF/X-1a and X-3 (transparency flattener), PDF presets and `.joboptions`, external validator | 40–70 |+| PDF/X-3, PDF presets and `.joboptions`, external validator | 30–60 || Print fidelity, PostScript level 3 output and print presets | 25–45 || ICML story import, IDMS snippets | 15–25 || HTML / fixed-layout EPUB with live text | 20–35 |diff --git a/docs/gaps.md b/docs/gaps.mdindex 5738d14c4..ef5e9c062 100644--- a/docs/gaps.md+++ b/docs/gaps.md@@ -116,12 +116,13 @@ Kind: **F** feature · **U** UI/UX · **T** typography · **FF** file format ·- **Estimate:** 10–20 h. **Doc:** [localization-parity.md](localization-parity.md)### 9. PDF output presets and standards (FF)-- **Missing:** PDF/X-1a and PDF/X-3 (no flattener to PDF 1.3/1.4), Adobe PDF Presets and- `.joboptions` load/save, output-intent choice beyond the built-in profile, PDF/UA validation;- #159, #32.-- **Have:** PDF/X-4 with output intent and a validator (`#200`), PDF/A-2b, tagged PDF, CMYK and- spot, marks and bleed, the options dialog with remembered settings (#196).-- **Estimate:** 40–70 h. **Doc:** [file-format-parity.md](file-format-parity.md)+- **Missing:** PDF/X-3, Adobe PDF Presets and `.joboptions` load/save, output-intent choice+ beyond the built-in profile, PDF/UA validation; soft effects other than the drop shadow reach+ the PDF/X-1a flattener as RGB images; #159, #32.+- **Have:** PDF/X-4 with output intent and a validator (`#200`), PDF/X-1a:2003 through+ craft-prepress's flattener with its own checks, PDF/A-2b, tagged PDF, CMYK and spot, marks and+ bleed, the options dialog with remembered settings (#196).+- **Estimate:** 30–60 h. **Doc:** [file-format-parity.md](file-format-parity.md)### 10. Printing (H, F)- **Missing:** PostScript, a printer-driver options UI, separations to device, print presets, or trapping.diff --git a/docs/roadmap.md b/docs/roadmap.mdindex 9223ca701..bc2962cb9 100644--- a/docs/roadmap.md+++ b/docs/roadmap.md@@ -63,7 +63,7 @@ set exists; depth gaps are in gaps.md.| M3 | Styles (nested/GREP, bullets, keeps, span columns) | ✅; style editing reliability (#169) || M4 | Color & effects | ✅ core; colour management depth || M5 | Graphics & links | ✅ core; EPS preview only |-| M6 | Files & export (native, IDML, PDF, PNG/JPEG) | IDML ✅, PDF ✅ (X-4, A-2b, tagged); INDD read ✅ (via indd-utils); PDF/X-1a/X-3 and presets ✗ |+| M6 | Files & export (native, IDML, PDF, PNG/JPEG) | IDML ✅, PDF ✅ (X-4, A-2b, tagged); INDD read ✅ (via indd-utils); PDF/X-1a ✅; PDF/X-3 and presets ✗ || M7 | Long documents (sections, TOC, index, footnotes, books) | ✅ except Books (shallow) || M8 | Tables | ✅ core (table/cell styles, rotation); diagonal lines, anchored objects in cells (#163) || M9 | Performance (MT composition, tiles) | in progress: parallel compose 6.7×, damage regions; incremental composition next |