PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
M5: add comment and reply submission shortcuts (#1457)
Luchsen3d7336fc41ac
diff --git a/ROADMAP.md b/ROADMAP.mdindex ab5361e60..37ffaefa0 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -11,6 +11,7 @@> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M5 #1398: stamps read upright on rotated pages; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (gap 6: cloudy comments stay when flatten cannot draw them, a refused text-box edit keeps its properties, arrow defaults stay off lines, a custom match stops at a separator, and the vertical-text redaction error no longer claims an overlap; #1317, #1327, #1302, #1315, #1340; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M7 #1316: replacing a line keeps a neighbouring line whose glyph box overlaps; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)+> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M5: comment submission shortcuts; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M1 #1339: an unchanged incremental save of a classic cross-reference table writes a zero-length subsection; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M14 Windows low-DPI font-hinting candidate measured on macOS; no Windows runtime claim; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M3: Windows' Animation effects setting is followed, and Preferences has Animation effects: system, on or off); earlier: exclusive image-crop resize follow-up; M2 short same-line redraws split before placement; estimates unchanged · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)@@ -151,6 +152,8 @@ Ranked; detail and the full milestone table in [docs/roadmap.md](docs/roadmap.md## Progress log- **2026-10-13 (M2, page-unit transform precision):** Preserve small transform coefficients in page marks, added content and print output. Regression cases cover accepted page units of 4096 and 75000; existing page-unit interpretation and estimates are unchanged.+- **2026-10-14 (M5, PR #1457 branch refresh):** Merged upstream main and reconciled roadmap entries while preserving comment submission shortcuts. Estimates unchanged.+- **2026-10-13 (M3, native-opening candidate):** Chosen tools survive preparation, conversion and password retries; startup intake waits for pending preparation. Regression tests cover completion, cancellation and document identity. Estimates unchanged.- **2026-10-12 (M10, Windows printing without PowerShell, #1107):** craft-print now prints on Windows in-process: printers from EnumPrinters/GetDefaultPrinter, jobs drawn as vectors by Windows.Data.Pdf into the XPS print API with a driver-validated PrintTicket (exact paper, orientation, no scaling), so printing works where App Control for Business or AppLocker run PowerShell in Constrained Language Mode. Portrait and landscape sheets still print as one job (turned with /Rotate); a sheet size the driver lacks is refused rather than shrunk. Pins craft-libs f03ec27 (craft-libs#28); deny.toml allows the storytold/winprint.rs fork and adds a webpki-root-certs licence exception and a RUSTSEC-2024-0370 ignore for winprint's build-dependencies. An earlier craft-print revision was checked in Windows Sandbox under enforced WDAC: printers listed, CLI and desktop jobs spooled, and no powershell.exe in the 4688 audit. The final pinned revision passed craft-libs Windows CI, including a real paused-queue job; that Sandbox run has not been repeated. Estimates unchanged.- **2026-10-12 (M4, #1310, #1311, #1312):** Undo back to the opened file left it marked unsaved, so recovery and close treated unchanged work as dirty. After a save, Revert followed the restored snapshot's older base and the next save dropped the latest saved revision. The last saved file is remembered on its own: undo and redo are clean only when they land on it, Revert opens it, and a later save appends to it. Estimates unchanged.@@ -165,6 +168,8 @@ Ranked; detail and the full milestone table in [docs/roadmap.md](docs/roadmap.md- **2026-10-12 (gap 6, #1317, #1327, #1302, #1315, #1340):** Flattening keeps a visible comment it cannot draw, such as a cloudy square with no stored appearance, and still draws a solid square, a hidden comment and a cloudy square that already has an appearance. A text box another program drew is left unchanged when a restyle or resize is refused. Make Current Properties Default on an arrow updates the Arrow tool and leaves plain lines alone. A custom text match that ends on a reconstructed word or line separator no longer includes the next glyph. The vertical-writing redaction refusal still fails closed, and its message no longer says the text was under the mark. Estimates unchanged.- **2026-10-12 (M12, text-only auto-tag):** Automatically tag PDF now writes marked text objects, paragraph tags, a Document element and a parent tree for untagged text-only PDFs. The result is undoable and opens the Tags panel for review. Mixed paint, forms, annotations, existing tags and malformed streams are refused before mutation. Synthetic two-page engine and tool tests check the tree, checker, unchanged rendering and save/reopen. Richer content and role classification remain open. Estimates unchanged.- **2026-10-12 (M7, #1316):** Replacing a line or paragraph no longer removes a distinct neighbour whose glyph box overlaps the edited line. A second drawing is removed only when it also sits on the same baseline, so fake-bold and invisible copies still go. Synthetic regressions cover 6 pt leading, the same word on the next line, ordinary spacing, a separate paragraph, same-position copies, and incremental and full save/reopen. Estimates unchanged.+- **2026-10-12 (M5, comment shortcuts):** Ctrl+Enter posts highlight comment text and replies; Shift+Enter adds a newline. Replies keep Enter-to-post, and floating comment composers only submit from their focused editor. Estimates unchanged.+- **2026-10-12 (M1, #1339):** An incremental save of an unchanged classic-table file used to append `xref` and then `trailer` with no subsection, which qpdf reports as a damaged file. The section now has a zero-length subsection, so no object entry changes and a trailer-only edit is still written. Estimates unchanged.- **2026-10-12 (M12, auto-tag preview):** The engine and `accessibility_autotag_preview` propose paragraph and large-heading roles for bounded text blocks on one page, with locations and reasons. Every proposal needs review; images remain unclassified. No PDF tags are written yet. Synthetic tool tests cover normal text, a larger heading, bounds and unchanged source bytes. Estimates unchanged.- **2026-10-12 (M10, editing OCR text on scans):** Editing a recognised word on a scanned page now changes what the page shows. Before, the rewrite stayed invisible OCR text, so the scan still showed the old word; on a form, the whole OCR layer also grouped into one paragraph that rewrapped when one word changed. OCR words now group into phrases (a table cell or a tab stop splits them, and lines stay apart); an edit draws the phrase visibly in the scan's sampled ink colour over a cover in the sampled paper colour, keeping each word's width and growing rightwards. The editor covers the scanned word while typing. OCR words are now sized from their letters (a capitals-only word's box spans the cap height, not the full ascender-descender span), so recognised and rewritten text is as tall as the scanned word and sits on its baseline. Five engine tests on synthetic scans and a kittest UI test; `ocr.editable-text-output` is partial.diff --git a/crates/forms/src/af.rs b/crates/forms/src/af.rsindex be38a9546..a3eea7323 100644--- a/crates/forms/src/af.rs+++ b/crates/forms/src/af.rs@@ -624,10 +624,8 @@ pub fn parse_date(text: &str, fmt: &str) -> Option<DateTime> {match k {// Literal digits in the format may be typed or left out ("15.05.26" or "15.05"// for "dd.mm.26"); a different number there is left over and rejected below.- '#' => {- if it.peek() == Some(&literal) {- it.next();- }+ '#' if it.peek() == Some(&literal) => {+ it.next();}'m' => {dt.m = match month_name {diff --git a/crates/ui-egui/src/comments.rs b/crates/ui-egui/src/comments.rsindex 774e37b30..6f3d8ab87 100644--- a/crates/ui-egui/src/comments.rs+++ b/crates/ui-egui/src/comments.rs@@ -1210,7 +1210,7 @@ pub(crate) fn composer(ctx: &egui::Context, view: &mut DocView, info: &DocInfo,edit.request_focus();c.focus = false;}- let enter = ui.input(|i| i.key_pressed(egui::Key::Enter) && i.modifiers.command);+ let enter = submit_key(ui, &edit, false);if ui.input(|i| i.key_pressed(egui::Key::Escape)) {cancel = true;}@@ -1288,6 +1288,27 @@ pub(crate) fn composer(ctx: &egui::Context, view: &mut DocView, info: &DocInfo,}}+/// Submit only from the focused comment editor. Match each key event's modifiers exactly,+/// so Shift+Enter stays a newline and another editor cannot submit this draft. Replies also+/// keep their existing unmodified Enter-to-post behavior.+pub(crate) fn submit_key(ui: &mut egui::Ui, field: &egui::Response, plain_enter: bool) -> bool {+ field.has_focus()+ && ui.input_mut(|input| {+ let mut submit = false;+ input.events.retain(|event| {+ let matched = matches!(event,+ egui::Event::Key { key: egui::Key::Enter, pressed: true, modifiers, .. }+ if modifiers.matches_exact(egui::Modifiers::CTRL)+ || modifiers.matches_exact(egui::Modifiers::COMMAND)+ || plain_enter && modifiers.matches_exact(egui::Modifiers::NONE)+ );+ submit |= matched;+ !matched+ });+ submit+ })+}+/// The side of the caret's box, in user space units, away from text.const CARET_SIZE: f64 = 8.0;diff --git a/crates/ui-egui/src/comments_panel.rs b/crates/ui-egui/src/comments_panel.rsindex 901493adf..32ea870b0 100644--- a/crates/ui-egui/src/comments_panel.rs+++ b/crates/ui-egui/src/comments_panel.rs@@ -299,10 +299,12 @@ fn card(if !r.has_focus() && !ui.memory(|m| m.focused().is_some()) {r.request_focus();}+ let submit = crate::comments::submit_key(ui, &r, false);ui.horizontal(|ui| {- if ui+ if (ui.add(egui::Button::new(egui::RichText::new(tl!("Save")).color(Color32::WHITE)).fill(t.accent).corner_radius(12)).clicked()+ || submit)&& let Some((page, index, text)) = view.comments.editing.take(){edit = Some(Edit::SetAnnotationContents { page, index, text });@@ -359,12 +361,14 @@ fn card(// around the button can't fit every language's "Post" exactly, and any overflow// would widen the resizable panel again on every repaint.let r = ui.add(- crate::widgets::line(&mut view.comments.reply)+ crate::widgets::block(&mut view.comments.reply)+ .desired_rows(1)+ .return_key(egui::KeyboardShortcut::new(egui::Modifiers::SHIFT, egui::Key::Enter)).hint_text(tl!("Add a reply")).desired_width(f32::INFINITY).id_salt(("comment-reply", key)),);- let enter = r.lost_focus() && ui.input(|i| i.key_pressed(egui::Key::Enter));+ let enter = crate::comments::submit_key(ui, &r, true);let ok = !view.comments.reply.trim().is_empty();let post =ui.with_layout(Layout::right_to_left(Align::Min), |ui| ui.add_enabled(ok, egui::Button::new(tl!("Post")).corner_radius(12)));diff --git a/crates/ui-egui/tests/comments.rs b/crates/ui-egui/tests/comments.rsindex 98f2bf907..18539535e 100644--- a/crates/ui-egui/tests/comments.rs+++ b/crates/ui-egui/tests/comments.rs@@ -231,6 +231,111 @@ fn a_new_highlight_opens_its_note_for_typing() {assert_eq!(h.state().views[0].comments.editing, Some((0, 1, "typed".into())));}+#[test]+fn ctrl_enter_posts_a_highlight_comment_and_shift_enter_adds_a_line() {+ let mut h = harness(|app| {+ app.set_option("quick", "highlight").unwrap();+ app.set_option("panel", "comments").unwrap();+ });+ let (a, b) = {+ let v = &h.state().views[0];+ (v.glyph_screen_pos(0, 4).expect("text layer"), v.glyph_screen_pos(0, 14).expect("glyph"))+ };+ drag(&mut h, a, b);+ h.query_all_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.placeholder() != Some("Add a reply"))+ .next()+ .expect("highlight editor")+ .click();+ h.run_steps(2);+ h.event(egui::Event::Text("First line".into()));+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::SHIFT, egui::Key::Enter);+ h.run_steps(2);+ assert_eq!(h.state().views[0].comments.editing.as_ref().unwrap().2, "First line\n");+ assert_eq!(comments(&h)[0].contents.as_deref().unwrap_or(""), "", "a newline does not post");+ h.event(egui::Event::Text("Second line".into()));+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::CTRL, egui::Key::Enter);+ h.run_steps(3);+ assert_eq!(h.state().views[0].comments.editing, None);+ assert_eq!(comments(&h)[0].contents.as_deref(), Some("First line\nSecond line"));+ h.state_mut().undo();+ h.run_steps(2);+ assert_eq!(comments(&h)[0].contents.as_deref().unwrap_or(""), "", "posting is one undo step");+}++#[test]+fn ctrl_enter_posts_a_reply_and_shift_enter_adds_a_line() {+ let mut h = harness(|app| app.set_option("panel", "comments").unwrap());+ field(&h, "Add a comment").click();+ h.run_steps(2);+ field(&h, "Add a comment").type_text("Parent");+ h.run_steps(2);+ h.key_press(egui::Key::Enter);+ h.run_steps(3);+ field(&h, "Add a reply").click();+ h.run_steps(2);+ field(&h, "Add a reply").type_text("First line");+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::SHIFT, egui::Key::Enter);+ h.run_steps(2);+ assert_eq!(comments(&h).len(), 1, "Shift+Enter does not post a reply");+ assert_eq!(h.state().views[0].comments.reply, "First line\n");+ h.event(egui::Event::Text("Second line".into()));+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::CTRL, egui::Key::Enter);+ h.run_steps(3);+ let c = comments(&h);+ assert_eq!(c.len(), 2);+ assert_eq!(c[1].contents.as_deref(), Some("First line\nSecond line"));+ assert_eq!(c[1].in_reply_to, c[0].name);+ assert_eq!(c[1].author.as_deref(), Some("Tester"));+ assert!(h.state().views[0].comments.reply.is_empty());+ h.key_press_modifiers(egui::Modifiers::CTRL, egui::Key::Enter);+ h.run_steps(2);+ assert_eq!(comments(&h).len(), 2, "an empty reply is not posted");+ h.state_mut().undo();+ h.run_steps(2);+ assert_eq!(comments(&h).len(), 1, "posting is one undo step");+ h.state_mut().set_option("comment", "1:1").unwrap();+ h.run_steps(2);+ field(&h, "Add a reply").click();+ h.run_steps(2);+ field(&h, "Add a reply").type_text("Enter still posts");+ h.run_steps(2);+ h.key_press(egui::Key::Enter);+ h.run_steps(3);+ assert_eq!(comments(&h)[1].contents.as_deref(), Some("Enter still posts"));+}++#[test]+fn the_comment_composer_shortcut_only_posts_the_focused_editor() {+ let mut h = harness(|app| app.set_option("quick", "note").unwrap());+ click_pt(&mut h, (250.0, 180.0));+ field(&h, "Add a comment").click();+ h.run_steps(2);+ h.event(egui::Event::Text("First line".into()));+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::SHIFT, egui::Key::Enter);+ h.run_steps(2);+ assert_eq!(h.state().views[0].comments.composer.as_ref().unwrap().text, "First line\n");+ assert!(comments(&h).is_empty());+ h.event(egui::Event::Text("Second line".into()));+ h.run_steps(2);+ h.query_all_by_value("1").next().expect("current page input").focus();+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::CTRL, egui::Key::Enter);+ h.run_steps(2);+ assert!(h.state().views[0].comments.composer.is_some(), "a shortcut outside the editor keeps the draft");+ assert!(comments(&h).is_empty());+ h.query_all_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput).next().expect("composer editor").focus();+ h.run_steps(2);+ h.key_press_modifiers(egui::Modifiers::CTRL, egui::Key::Enter);+ h.run_steps(3);+ assert!(h.state().views[0].comments.composer.is_none());+ assert_eq!(comments(&h)[0].contents.as_deref(), Some("First line\nSecond line"));+}+#[test]fn a_selection_made_first_is_marked_when_a_tool_is_picked() {let mut h = harness(|_| {});diff --git a/crates/ui-egui/tests/reload.rs b/crates/ui-egui/tests/reload.rsindex dc0ed869b..03a3bf5f4 100644--- a/crates/ui-egui/tests/reload.rs+++ b/crates/ui-egui/tests/reload.rs@@ -77,6 +77,7 @@ fn harness(path: &str) -> Harness<'static, PdfCraftApp> {let path = path.to_owned();let mut h = Harness::builder().with_size(egui::vec2(1400.0, 900.0)).build_eframe(move |_cc| {let mut app = PdfCraftApp::new();+ app.set_option("language", "en").unwrap();app.run_inline = true;app.open_path(&path);appdiff --git a/docs/roadmap.md b/docs/roadmap.mdindex 3342f83d8..b67ef67f4 100644--- a/docs/roadmap.md+++ b/docs/roadmap.md@@ -9,6 +9,7 @@> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M5 #1398: stamps read upright on rotated pages; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (gap 6: #1317, #1327, #1302, #1315, #1340; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M7 #1316: replacing a line keeps a neighbouring line whose glyph box overlaps; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)+> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M5: comment submission shortcuts; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M1 #1339: unchanged incremental saves of a classic cross-reference table write a zero-length subsection; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M3: Windows' Animation effects setting is followed, and Preferences has Animation effects; earlier: exclusive image-crop resize follow-up; M2: short same-line redraws split before placement; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-12 · **Change:** minor (M7: inline Arabic ActualText ligatures join their word; earlier: preserve Arabic ActualText typing order; M3: Windows' Animation effects setting is followed, and Preferences has Animation effects; exclusive image-crop resize follow-up; M2: short same-line redraws split before placement; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)@@ -99,7 +100,7 @@ total matches the parity estimate.| M4 | Engine, history, save, organize | 100–180 | 95% | 8–15 | Done:<br>- command registry (menus, shortcuts and palette all use it);<br>- undo/redo; incremental, atomic and encrypted saves;<br>- autosave and crash recovery;<br>- organize, combine, extract, split and insert-from-file, with identical fonts and images stored once;<br>- CLI `edit/combine/extract/split`.<br>Done since: Organize opens directly into the page overview, with checkbox selection, an editable page-range selection (#1092), and per-page rotate/delete controls; Combine files in its own tab (sortable, resizable columns; folders; early warnings; unlocking protected files), bookmark editing, page labels (Number pages), CLI `run`, Set Page Boxes, Crop tool, Duplicate pages, Ctrl+A / Cmd+A to select all pages in Organize, Replace pages, bookmarks from tagged headings. Extract and Split preserve shared Type 3 glyph resource graphs, retaining conservative pruning limits. Undo back to the opened or last saved file is clean; Revert opens that saved file after an undo; a later save appends to it so the saved revision stays in the file (#1310, #1311, #1312). Missing: page transitions, recovery on the web || M3 | Viewer app (native + web) | 80–150 | 90% | 10–20 | Acrobat-style shell, find, select, panels, tiles, web build, UI control channel for agents (opt-in). Missing: 60 fps test on a 500-page document, snapshot tests of every panel<br>Done since: fit visible, document title in the window; Linux middle-button scrolling; shared three-state theme preferences in the toolbar, View menu and control channel; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). Renderer-creation errors return to the existing OpenGL startup fallback; a real-GPU regression covers errors and device reuse. The underlying x86 DX12 shader compiler failure remains unresolved; see `windows-renderer-startup.md`. With Windows' Animation effects turned off, the wheel scrolls and zooms without easing and egui's animations take no time (`motion.rs`; macOS, Linux and the browser aren't asked yet); Preferences ▸ Animation effects (Use system setting, On, Off) decides it on every platform. || M4 | Engine, history, save, organize | 100–180 | 95% | 8–15 | Done:<br>- command registry (menus, shortcuts and palette all use it);<br>- undo/redo; incremental, atomic and encrypted saves;<br>- autosave and crash recovery;<br>- organize, combine, extract, split and insert-from-file, with identical fonts and images stored once;<br>- CLI `edit/combine/extract/split`.<br>Done since: Combine files in its own tab (sortable, resizable columns; folders; early warnings; unlocking protected files), bookmark editing, page labels (Number pages), CLI `run`, Set Page Boxes, Crop tool, Duplicate pages, Ctrl+A / Cmd+A to select all pages in Organize, Replace pages, bookmarks from tagged headings. Missing: page transitions, recovery on the web |-| M5 | Comments (all annotation types, XFDF) | 120–200 | 88% | 12–25 | Done: notes, highlight/underline/strikeout/squiggly, text boxes, ink, lines, arrows, rectangles, ovals, stamps (dynamic, Sign Here, Standard Business), with appearance streams; replies, status, checkmarks, locking, move/resize/restyle/delete; properties dialog; panel filter and sort; hide all; summaries (comments only); XFDF/FDF import and export (partial imports preserve existing reply and review-status links); flatten; Fill & Sign with adjustable text/date size; agent tools.<br>Done since: stamps placed on a rotated page read upright (#1398); polygons, connected lines, clouds, callouts, inserted text, colour and checkmark filters; image signature pointer previews, selection handles and live image movement/resizing with proportional corners and independent edge handles. Missing: custom stamps, replace-text proposals, summary layouts with the page |+| M5 | Comments (all annotation types, XFDF) | 120–200 | 88% | 12–25 | Done: notes, highlight/underline/strikeout/squiggly, text boxes, ink, lines, arrows, rectangles, ovals, stamps (dynamic, Sign Here, Standard Business), with appearance streams; replies, status, checkmarks, locking, move/resize/restyle/delete; properties dialog; panel filter and sort; hide all; summaries (comments only); XFDF/FDF import and export (partial imports preserve existing reply and review-status links); flatten; Fill & Sign with adjustable text/date size; agent tools.<br>Done since: stamps placed on a rotated page read upright (#1398); polygons, connected lines, clouds, callouts, inserted text, colour and checkmark filters; image signature pointer previews, selection handles and live image movement/resizing with proportional corners and independent edge handles; Ctrl+Enter submission for highlight comment text and replies, with Shift+Enter newlines (reconciled with upstream main for PR #1457 on 2026-10-14). Missing: custom stamps, replace-text proposals, summary layouts with the page || M5 | Comments (all annotation types, XFDF) | 120–200 | 88% | 12–25 | Done: notes, highlight/underline/strikeout/squiggly, text boxes, ink, lines, arrows, rectangles, ovals, stamps (dynamic, Sign Here, Standard Business), with appearance streams; replies, status, checkmarks, locking, move/resize/restyle/delete; properties dialog; panel filter and sort; hide all; summaries (comments only); XFDF/FDF import and export (partial imports preserve existing reply and review-status links); flatten; Fill & Sign with adjustable text/date size; agent tools.<br>Done since: polygons, connected lines, clouds, callouts, inserted text, colour and checkmark filters; image signature pointer previews, selection handles and live image movement/resizing with proportional corners and independent edge handles. A refused restyle or resize of a text box another program drew leaves that comment unchanged (#1327). Make Current Properties Default on an arrow updates arrows, not plain lines (#1302). Flattening keeps a visible comment it cannot draw (#1317). Missing: custom stamps, replace-text proposals, summary layouts with the page || M6 | Forms + JavaScript | 160–320 | 50% | 40–75 | Done: filling all field types with regenerated appearances; Prepare a form (every field type, multi-select/shared properties, move/resize/delete, Field Properties General/Appearance/Position/Options/Format/Validate/Calculate); Acrobat's AF format/keystroke/validate/calculate functions and simplified field notation run natively in Acrobat's event order; tab order; push-button actions; flatten; agent tools. Form data exchange (FDF, XFDF, XML, CSV, text) done.<br>Done since: JavaScript engine (boa, sandboxed) running custom keystroke/validate/calculate/format and button scripts, document JavaScripts, console. Missing: Actions tab, wider object model (annotations, layers, dialogs), XFA || M7 | Content editing (text, images, header/footer, watermark) | 250–500 | 20% | 100–180 | Done: header & footer, watermarks, backgrounds, Bates; added text and images that stay editable (move, resize, format, rotate, flip, crop, replace); links (Link tool, Link Properties, create from URLs, remove all). Done since: Edit text preserves Arabic/Hebrew `/ActualText` typing order, with font-independent regressions; single-glyph RTL ligature spans (including lam-alef) join their surrounding word. Done since (#1116): editable text regions grouped across compatible words and subset fonts, one rich-text editor over a background with the source text removed, embedded sfnt faces reused as editor faces, and visible (clipped) bounds for cropped-image selection and resize. Exclusive crops now resize across nested states and content streams, with shared clips fixed.<br>Done since: #594 ordinary paragraph drags preserve overlapping source text; UI/engine regressions, native save/reopen, independent-reader checks and full CI passed in the Linux test environment. #1200 candidate: local GoToR links open in desktop tabs and through root-confined automation; appearance-only edits preserve existing actions. Named destinations remain unapplied and `/NewWindow` is a tab hint. Missing: editing existing text and images in place (the longest pole), image/PDF watermarks |@@ -164,6 +165,7 @@ M2 (renderer), M7 (content editing), M10 (OCR and Office), M11 (Preflight and st| Date | Change | Summary ||---|---|---|| 2026-10-12 | minor | M4 #1310 #1311 #1312: undo back to the opened file is clean, Revert returns to the last saved file, and the next save keeps that revision. Estimates unchanged. |+| 2026-10-14 | minor | M5: reconciled PR #1457 with upstream main, preserving comment submission shortcuts and upstream roadmap progress. Estimates unchanged. || 2026-10-12 | minor | M13: CLI check directory identity, with overlap and symlink regressions; estimates unchanged || 2026-10-12 | minor | M4: shared Type 3 glyph resources survive extraction, with save/reopen and independent raster regressions; estimates unchanged || 2026-10-12 | minor | M2: packed TIFF-predictor RGB row boundaries, with decoding and page-render regressions; estimates unchanged |@@ -182,6 +184,7 @@ M2 (renderer), M7 (content editing), M10 (OCR and Office), M11 (Preflight and st| 2026-10-11 | minor | M4: editable Organize page-range selection (#1092), synchronized with thumbnails and available through UI control. Estimates unchanged. || 2026-10-11 | minor | M10: Word invoice export regressions (#773); estimates unchanged. || 2026-10-12 | minor | M2: short same-line redraws split before placement; estimates unchanged. |+| 2026-10-12 | minor | M5: Ctrl+Enter posts highlight comment text and replies; Shift+Enter adds newlines. Estimates unchanged. || 2026-10-11 | minor | M3: Windows' Animation effects setting is followed: wheel scrolling and zooming without easing, no other animations. Preferences ▸ Animation effects (Use system setting, On, Off) overrides it. macOS, Linux and the browser aren't asked yet. Estimates unchanged. || 2026-10-11 | minor | M10: printing on the web through the browser's print dialog (gap 4 closed); rank 1 drops web printing, 65–120 → 50–90 h || 2026-10-11 | minor | M13/#971: cap materialized text-search matches to the requested limit plus one continuation match. |diff --git a/parity/acrobat-features.toml b/parity/acrobat-features.tomlindex 3f56e207a..93f62a4ca 100644--- a/parity/acrobat-features.toml+++ b/parity/acrobat-features.toml@@ -3548,8 +3548,8 @@ milestone = "M5"status = "shipped"commands = ["comment.note"]tools = ["comment_add"]-evidence = ["crates/ui-egui/tests/comments.rs::sticky_note_composer_posts_and_returns_to_select", "crates/annot/src/tests.rs::every_tool_creates_a_drawable_comment"]-notes = "our own Comment/Note icon drawings, with a pop-up"+evidence = ["crates/ui-egui/tests/comments.rs::sticky_note_composer_posts_and_returns_to_select", "crates/ui-egui/tests/comments.rs::the_comment_composer_shortcut_only_posts_the_focused_editor", "crates/annot/src/tests.rs::every_tool_creates_a_drawable_comment"]+notes = "our own Comment/Note icon drawings, with a pop-up; Ctrl+Enter (also Command+Enter) posts from the focused editor, Shift+Enter adds a newline"[[feature]]id = "comment.highlight"@@ -3896,8 +3896,8 @@ milestone = "M5"status = "shipped"commands = ["comment.list"]tools = ["comment_reply"]-evidence = ["crates/ui-egui/tests/comments.rs::the_panel_posts_comments_and_replies", "crates/annot/src/tests.rs::replies_and_status_thread_onto_the_parent"]-notes = ""+evidence = ["crates/ui-egui/tests/comments.rs::the_panel_posts_comments_and_replies", "crates/ui-egui/tests/comments.rs::ctrl_enter_posts_a_reply_and_shift_enter_adds_a_line", "crates/annot/src/tests.rs::replies_and_status_thread_onto_the_parent"]+notes = "multiline reply field: Enter or Ctrl+Enter (also Command+Enter) posts, Shift+Enter adds a newline; empty replies are not posted"[[feature]]id = "comment.set-status"@@ -3944,8 +3944,8 @@ milestone = "M5"status = "shipped"commands = ["comment.list"]tools = ["comment_edit"]-evidence = ["crates/annot/src/tests.rs::text_box_text_and_colour_changes_are_drawn", "crates/annot/src/tests.rs::editing_a_text_box_refits_its_rectangle", "crates/automation/tests/automation.rs::comments_through_tools"]-notes = "double-click a comment or card, or Edit in the menus; a text box's rectangle follows the new text (wrap width and top edge stay, the height fits the wrapped lines)"+evidence = ["crates/annot/src/tests.rs::text_box_text_and_colour_changes_are_drawn", "crates/annot/src/tests.rs::editing_a_text_box_refits_its_rectangle", "crates/automation/tests/automation.rs::comments_through_tools", "crates/ui-egui/tests/comments.rs::ctrl_enter_posts_a_highlight_comment_and_shift_enter_adds_a_line"]+notes = "double-click a comment or card, or Edit in the menus; Ctrl+Enter (also Command+Enter) saves text in the focused comment editor, Shift+Enter adds a newline; a text box's rectangle follows the new text (wrap width and top edge stay, the height fits the wrapped lines)"[[feature]]id = "comment.copy-comment-text"