diff --git a/crates/doc/src/inks.rs b/crates/doc/src/inks.rs index ec64a4d6ae..6ae7506b03 100644 --- a/crates/doc/src/inks.rs +++ b/crates/doc/src/inks.rs @@ -136,7 +136,9 @@ pub type StopPlates = Option<[f32; 4]>; /// [`inks`] of a colour that may print process plates `plates` with its spot tint. The plates /// print only beside a spot ink: a colour without a valid spot link, or linked to Registration, /// prints as [`inks`] separates it. A spot ink named like a process plate prints its tint layered -/// over that plate's amount. A plate amount that is not a finite number prints no ink. +/// over that plate's amount; EPS export can't write that ink beside process plates in one DeviceN +/// space, so it writes such a gradient in process colors with a warning. A plate amount that is +/// not a finite number prints no ink. pub fn stop_inks(doc: &Document, c: &Cms, color: &Color, link: Link, plates: StopPlates, intent: Intent) -> Inks { let mut ink = inks(doc, c, color, link, intent); if let (Some(p), Some((name, tint))) = (plates, &ink.spot) { diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 01c8bedbdb..ad1dd9f3bb 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1844,7 +1844,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur A PDF, or a `.ai` read through its PDF part, whose spot inks have the same values but different names opens with a spot swatch for each ink. The solid fills and strokes of paths and type, and the stops of gradients on paths, link to the swatch of the ink they are painted in, the points of a gradient mesh in one of these inks keep the ink's color, and PDF export writes each of these inks as its own separation (`pdf/src/tests/import_color.rs`). Paint in these inks inside pattern cells, soft masks and type 3 glyphs, and gradients on type in these inks, still import as RGB. Type in one of these inks can also import as RGB when type in another Separation or DeviceN ink is shown with no path drawn between them. The stops of an axial or radial shading in a DeviceN space that mixes one spot ink with process plates (a spot ink over a constant cyan, for example) link to the ink's swatch at its tint and keep the process plates, and PDF and EPS (Level 3) export write those stops in a DeviceN space of the ink and those plates, so the spot plate is not lost (#3235, `import_color::a_device_n_gradient_of_a_spot_ink_over_a_process_plate_keeps_both_inks`). Solid fills that mix a spot ink with process plates, and stops that mix several spot inks, still import as RGB, with the spot inks kept as swatches. Print separations and Separations Preview print such a stop's process plates on the Cyan, Magenta, Yellow and Black plates beside its tint on the spot plate; with spots printed as process, each process plate prints the stop's plate layered with the spot tint's process equivalent. A freeform gradient's points separate into plates as its stops do, and converting the document's color mode converts them (`print::a_spot_gradient_stop_prints_its_process_plates`, `print::a_freeform_gradients_points_separate_into_plates`, `colorize::separations_preview_shows_a_spot_gradient_stops_process_plates`, `colormgmt::rgb_cmyk_converts_each_freeform_point`). Print separations and Separations Preview clamp the tint of a fill, stroke or gradient stop linked to a spot swatch or to Registration to 0–1, and a tint that is not a finite number prints no ink, so the plate's coverage stays a number; a stop's process plates still print beside it. This is VectorCraft's own rule (`inks::tests::a_spot_or_registration_tint_that_is_not_a_finite_number_prints_no_ink`, `print::a_spot_gradient_stop_whose_tint_is_not_a_number_prints_no_spot_ink`). - A fill, stroke or gradient stop links to the first swatch of its name, so print separations, Separations Preview and the Separations panel list a spot plate only for a spot swatch that is the first of its name: a spot swatch after a process swatch of the same name, which art linked by that name separates as process, gets no empty plate. A fill, stroke or gradient stop linked to a spot swatch named Cyan, Magenta, Yellow or Black prints its tint on that process plate, as PDF and EPS export write it, instead of a spot amount no plate prints; a gradient stop's own process plates print beside it, with the tint layered over that plate's amount. These are VectorCraft's own rules (`inks::tests::a_spot_swatch_named_like_an_earlier_process_swatch_gets_no_plate`, `inks::tests::a_spot_swatch_named_like_a_process_plate_prints_on_that_plate`). + A fill, stroke or gradient stop links to the first swatch of its name, so print separations, Separations Preview and the Separations panel list a spot plate only for a spot swatch that is the first of its name: a spot swatch after a process swatch of the same name, which art linked by that name separates as process, gets no empty plate. A fill, stroke or gradient stop linked to a spot swatch named Cyan, Magenta, Yellow or Black prints its tint on that process plate, as PDF and EPS export write it, instead of a spot amount no plate prints; a gradient stop's own process plates print beside it, with the tint layered over that plate's amount. EPS export writes a gradient with such a stop and process plates in process colors, with a warning, as the EPS gradient rules below say. These are VectorCraft's own rules (`inks::tests::a_spot_swatch_named_like_an_earlier_process_swatch_gets_no_plate`, `inks::tests::a_spot_swatch_named_like_a_process_plate_prints_on_that_plate`). A `.ai` or EPS opened from its editing data keeps both swatches when a pattern's name, or a named color's, is also another swatch's: a pattern's swatch named as a default swatch, a named color or a palette color becomes "Name 2", and a named color named as a gradient or pattern swatch of the palette becomes "Name 2", with the fills, strokes and gradient stops linked to it following it (`ai::tests::a_pattern_swatch_named_as_another_swatch_is_numbered`, `ai::tests::a_color_named_as_a_palette_gradient_or_pattern_is_numbered`). PDF export writes a linear or radial gradient that mixes a spot color with process colors, or two spot colors, as a DeviceN shading of the spot inks and the process inks its stops use, so each spot ink prints on its own plate; an off-center midpoint is written as a stop with the inks halfway between its two stops. A gradient that mixes a spot color with RGB or Lab colors is still written without the spot ink, with a warning. A CMYK document, or an export that converts colors to a CMYK destination profile, writes RGB and Lab stops in CMYK first (unless the export converts colors to an RGB destination profile), so there such a gradient, Classic or Perceptual, is written as a DeviceN shading that keeps the spot ink. A Perceptual gradient of spot inks is written as a Separation or DeviceN shading of the stops on its curve; a dithered gradient fill, and a Perceptual gradient with RGB or Lab stops other than white or more than 4,096 stops on its curve, are written as images in process colors, with a warning. A Lab spot color in such a shading is named by the same Separation space, with the Lab alternate, as its flat fills (`engine/src/tests/linked_stops.rs`, `engine/src/tests/labspots.rs`). PDF and EPS export name a spot ink in a gradient's Separation or DeviceN space, and EPS in `%%DocumentCustomColors`, only when a stop linked to it at a tint above 0, or with process plates, colors part of the gradient (VectorCraft's own rule): a stop out of order whose neighboring stretches have no width, and in PDF a stop whose stretches are fully transparent, adds no ink and no empty plate. EPS writes every stop opaque, so there a transparent spot stop keeps its ink (`crates/pdf/src/tests/output.rs`, `crates/eps/src/tests.rs`).