From d5a3e093a45771eb303f85fcf650c8edd5779a32 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 17:38:14 +0100 Subject: [PATCH 1/6] PR #14361: the Artboards to PDF params doc has a plain arrow again The Reverse Page Order change wrote the arrow before the result as mis-decoded UTF-8 (three Latin-1 characters). Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/artboard_cmds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/artboard_cmds.rs b/crates/engine/src/cmd/artboard_cmds.rs index d85ddba7e9..c3ebfc8551 100644 --- a/crates/engine/src/cmd/artboard_cmds.rs +++ b/crates/engine/src/cmd/artboard_cmds.rs @@ -1154,7 +1154,7 @@ pub fn specs() -> Vec { "file.export.artboardsToPdf", "Artboards to PDF…", &["File", "Export"], - r##"{"path":str (.pdf),"artboards":[id]?,"quality":0..12=10,"reversePageOrder":bool=false (the default page order the other way round)} → {path, pages} (one raster page per board, bottom artboard of the Layers panel first)"##, + r##"{"path":str (.pdf),"artboards":[id]?,"quality":0..12=10,"reversePageOrder":bool=false (the default page order the other way round)} → {path, pages} (one raster page per board, bottom artboard of the Layers panel first)"##, export_artboards, artboards_to_pdf ), From 02e6d6966e0da8df3bb392e1bec15c0c32754e5d Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 17:40:50 +0100 Subject: [PATCH 2/6] cargo fmt after merging #14272 Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/artboard_cmds.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/artboard_cmds.rs b/crates/engine/src/cmd/artboard_cmds.rs index 8bed43f0fb..b59828a0ef 100644 --- a/crates/engine/src/cmd/artboard_cmds.rs +++ b/crates/engine/src/cmd/artboard_cmds.rs @@ -940,7 +940,9 @@ fn artboards_to_files(s: &mut Session, p: &Value) -> Result { Some(_) if truecolour && one.mode != ColorMode::Rgb => encode(&rgb_copy(&one)?, &path, save)?, Some(_) => encode(&one, &path, save)?, // The PNG-8 writer does not interlace; say so, as the palette PNG path of a save does. - None if save.png_interlaced == Some(true) => (png8(&one, cmd)?, vec!["written without interlacing: the PNG-8 exporter does not interlace".to_owned()]), + None if save.png_interlaced == Some(true) => { + (png8(&one, cmd)?, vec!["written without interlacing: the PNG-8 exporter does not interlace".to_owned()]) + } None => (png8(&one, cmd)?, Vec::new()), }; guard.check()?; From 1a7f95c13e5f3a62deb2f18bcfe45306f3b1ba53 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 18:35:40 +0100 Subject: [PATCH 3/6] PR #14292: drop the import the merged export loop no longer uses Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/artboard_cmds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/artboard_cmds.rs b/crates/engine/src/cmd/artboard_cmds.rs index b59828a0ef..f0c1308a62 100644 --- a/crates/engine/src/cmd/artboard_cmds.rs +++ b/crates/engine/src/cmd/artboard_cmds.rs @@ -16,7 +16,7 @@ use photocraft_raster::Surface; use serde_json::{Value, json}; use crate::commands::{CommandSpec, color_param, int, int_i32}; -use crate::file_cmds::{SaveOpts, encode, f64_param, join, native_doc, sanitize, stem, str_param, write_file}; +use crate::file_cmds::{encode, f64_param, join, native_doc, sanitize, stem, str_param, write_file}; use crate::{EngineError, Result, Session}; /// Artboard size presets (name, width, height) in pixels, Photoshop's common devices and pages. From 9c3a994ed6d5f90f3e5a4e9178266e21214b7cd9 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 18:47:52 +0100 Subject: [PATCH 4/6] PR #14361: the Reverse Page Order dialog test exports every board Export Selected Artboards from main opens ticked while a board is selected, so the dialog exported one page and the test, written before it, expected two. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/artboards_to_pdf_reverse_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/src/artboards_to_pdf_reverse_tests.rs b/crates/ui-egui/src/artboards_to_pdf_reverse_tests.rs index ebc7371bb7..50c0e480fe 100644 --- a/crates/ui-egui/src/artboards_to_pdf_reverse_tests.rs +++ b/crates/ui-egui/src/artboards_to_pdf_reverse_tests.rs @@ -35,6 +35,8 @@ fn open(h: &mut H, path: &str) -> DialogId { let dialog = h.state().framework.dialogs.open_dialogs().into_iter().map(|d| d.id).find(|d| d.value().to_string() == want).unwrap(); h.run_steps(4); h.state_mut().framework.dialogs.set_json_field(&ctx, dialog, "path", json!(path)).unwrap(); + // Every board, not only the selected one: Export Selected Artboards opens ticked while a board is selected (#13647). + h.state_mut().framework.dialogs.set_json_field(&ctx, dialog, "artboards", serde_json::Value::Null).unwrap(); h.run_steps(4); dialog } From b689784b4b4a6bf3c49166c868406d223d10fbf6 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 19:03:40 +0100 Subject: [PATCH 5/6] PR #14321: Include Artboard Name shows without Export Options A form section's body runs to the next section and hides with it. Below the Export Options section the Include Artboard Name checkbox showed only while Export Options was ticked; both checkboxes now come before either section. Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/artboard_cmds.rs | 6 +++--- crates/ui-egui/src/menus/view_cmds/dialogs.rs | 13 +++++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/crates/engine/src/cmd/artboard_cmds.rs b/crates/engine/src/cmd/artboard_cmds.rs index a6d3a77b5c..ccc6af102e 100644 --- a/crates/engine/src/cmd/artboard_cmds.rs +++ b/crates/engine/src/cmd/artboard_cmds.rs @@ -1300,11 +1300,11 @@ mod file_types_tests; #[path = "artboard_cmds/first_board_background_tests.rs"] mod first_board_background_tests; #[cfg(test)] -#[path = "artboard_cmds/include_name_tests.rs"] -mod include_name_tests; -#[cfg(test)] #[path = "artboard_cmds/from_group_reset_props_tests.rs"] mod from_group_reset_props_tests; +#[cfg(test)] +#[path = "artboard_cmds/include_name_tests.rs"] +mod include_name_tests; #[cfg(test)] #[path = "artboard_cmds/from_layers_history_name_tests.rs"] diff --git a/crates/ui-egui/src/menus/view_cmds/dialogs.rs b/crates/ui-egui/src/menus/view_cmds/dialogs.rs index d90d7c0121..e6fd03da0f 100644 --- a/crates/ui-egui/src/menus/view_cmds/dialogs.rs +++ b/crates/ui-egui/src/menus/view_cmds/dialogs.rs @@ -322,10 +322,15 @@ pub(super) fn params_for(app: &mut PhotocraftApp, id: &str) -> Option<(Vec { From e33b62659d92f042f71f4f6079e1197fec2c3e4e Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 19:18:53 +0100 Subject: [PATCH 6/6] PR #14413: the Include Background tests export Artboard Content Only Red and Blue Board overlap in the test document. Include Overlapping Areas, the default since #14381, puts Blue Board's pixels on the Red Board page, so the tests, written before it, now ask for Artboard Content Only unless they set the content themselves. Co-Authored-By: Claude Opus 5.5 --- .../src/cmd/artboard_cmds/pdf_include_background_tests.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/engine/src/cmd/artboard_cmds/pdf_include_background_tests.rs b/crates/engine/src/cmd/artboard_cmds/pdf_include_background_tests.rs index 6d359b58a9..cf9d883e73 100644 --- a/crates/engine/src/cmd/artboard_cmds/pdf_include_background_tests.rs +++ b/crates/engine/src/cmd/artboard_cmds/pdf_include_background_tests.rs @@ -38,6 +38,11 @@ fn export(s: &mut Session, tag: &str, params: Value) -> Vec { let path = std::env::temp_dir().join(format!("photocraft-abpdf-bg-{}-{tag}.pdf", std::process::id())); let mut p = params; p["path"] = json!(path.to_string_lossy()); + // Artboard Content Only unless a test says otherwise: Red and Blue Board overlap, and Include Overlapping Areas + // (#13646, the default) would put Blue Board's pixels on the Red Board page. + if p.get("content").is_none() { + p["content"] = json!("artboard"); + } s.execute("file.export.artboardsToPdf", p).unwrap(); let bytes = std::fs::read(&path).unwrap(); let _ = std::fs::remove_file(&path);