Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Merge branch 'print-color-gradients' into print-color

aionggfa4edee57b9d
diff --cc ROADMAP.md
index 67ba80ede,c6160f82b..fbd33049e
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@@ -348,7 -348,7 +348,8 @@@ list) · [roadmap.md](docs/roadmap.md)
Newest first.
+- **2026-10-20** · Print color (craft-libs#190): CMYK print PDFs blend in DeviceCMYK and carry the CMYK working space as their output intent through craft-pdf's print settings instead of byte rewrites; 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-colour 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.
- **2026-10-16** · Parents can be deleted from their Pages-panel context menu or `layout.parents.delete {id}`. Applied-page and based-on references are cleared, local override copies survive, and Undo restores the parent. Addresses the deletion portion of #956; no readiness percentage change.
- **2026-10-17** · File › Package writes the document's and the IDML's links relative to the package (`Links/logo.png`, `file:Links/logo.png`), so a package holds no path from the machine that made it; opening a document resolves them to the files beside it. Links › Copy Link(s) To still links by full path. (#340). No readiness percentage change.
diff --cc crates/pdf/src/lib.rs
index c2c98799b,b589fcc8c..25045c71e
--- a/crates/pdf/src/lib.rs
+++ b/crates/pdf/src/lib.rs
@@@ -12,10 -12,11 +12,13 @@@
//! - **Colour:** CMYK as DeviceCMYK, RGB as DeviceRGB, Gray as DeviceGray, spot swatches (and their
//! tints) as `/Separation` with the swatch's own values as the alternate space, `[Registration]`
//! as `/Separation /All`.
- //! Gradients with mixed output colour spaces are converted to RGB with an export warning;
- //! homogeneous gradients keep their existing colour space (subject to PDF/A conversion).
+ //! Gradient stops on swatches shade in their inks: one spot with tints of itself or `[Paper]`
+ //! as a `/Separation` shading, a spot with process inks or a second spot as `/DeviceN`
+ //! (process colorants first; not in PDF/A, which goes to process colour with a warning), and in
+ //! print a process gradient to `[Paper]` as DeviceCMYK. Plain-colour stops keep their own
+ //! space; gradients mixing RGB with CMYK or Gray are converted to RGB with an export warning.
+//! - **Overprint:** Overprint Fill, Stroke and Gap, overprinting text and 100% [Black] (when
+//! Appearance of Black says so) as `/op` and `/OP` with `/OPM 1`; left out of PDF/A.
//! - **Images:** clipped to their frame; JPEG data is passed through, PNG/GIF/WebP are embedded
//! losslessly (or re-encoded as JPEG with [`PdfOptions::compress_images`]). PDF/X-4 and PDF/A
//! images are written without interpolation. In PDF/X-4 an RGB image without a profile of its own