* fix(reader): bound malformed-object load diagnostics (#2670)
* fix(reader): share diagnostic budget across eager load paths (#2670)
* M1: share diagnostic budgets through compressed Length lookups
* M1: share warning budgets across encrypted object streams
* M1: count encrypted stream failures and bound lookup warnings
* #2670: document bounded reader diagnostics and regressions
* M7: the Preferences language test opens the app menu on macOS
On macOS the in-window menu bar takes the Mac layout (Target::current() in
menus.rs), which moves Preferences out of Edit into the app menu as
Settings…. The test opened Edit and found no Preferences row, so it failed
on every macOS run. CI runs the tests only on Ubuntu and Windows, so it
never saw this.
The test now opens the menu that holds Preferences on the platform it runs
on: the PdfCraft app menu and its Settings… row on macOS, Edit and
Preferences elsewhere. The Windows and Linux path is unchanged, and so is
the app.
* M7: a doc comment on the Preferences language test
Says what the test checks and where each platform keeps Preferences, for the docstring coverage check.
* M7: a doc comment on the Ukrainian Preferences test
The doc comment added above the next test touches this one too, so CodeRabbit's docstring check counts it.
* M7: doc comments on the neighboring language and state tests
Each doc comment's context reaches the test above it, so CodeRabbit's docstring check counts those too.
* M14: the comments panel lays out only the cards in view (#5488)
With more than 100 comments, a card or page header out of view that
was measured at the current width only takes up its height instead of
being laid out every frame. The selected card is always drawn, so it
still scrolls itself into view. Shorter lists are laid out whole and
keep every card in the accessibility tree.
The 500-comment panel in tests/perf.rs drops from about 23 ms to 5 ms
per frame locally, well inside the 40 ms budget it overran on CI.
* ci: retrigger checks after the GitHub Actions outage
---------
Co-authored-by: Eric Kaden <[email protected]>
Co-authored-by: Perchenko Anton <[email protected]>
Co-authored-by: Lcoding15 <[email protected]>
Co-authored-by: Anton Pepperok <[email protected]>
Co-authored-by: PerchAnton <[email protected]>
* fix(js): a value a script assigns with field.value is shown through the field's Format script (#9140)
Only Calculate results were marked for redrawing through the Format script, so a button that copied
138 into a currency field drew "138" instead of "$ 138.00". The field.value setter now marks the
field formatted as well; the stored value is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Rvu8dYQi7eW7nr4gjv2mgG
* fix(forms): a check box or radio button a script sets keeps its state appearances (#9140)
The Format redraw draws one text appearance and removes /AS, so a script assigning a check box's
value would have lost its on and off faces. Only text and combo boxes are redrawn through Format.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Rvu8dYQi7eW7nr4gjv2mgG
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
The v0.23.2 macOS job compiled Apple Silicon and Intel in series on one
macos-15 runner; the Build, sign, notarize step took about 3 hours 2
minutes (run 46835450051). macos-split-build: true compiles each
architecture on its own runner, then package.sh --skip-build lipos,
signs and notarizes the prebuilt pdfcraft and pdfcraft-cli binaries.
Fixes#9074.
* M3: restore native Wayland pinch through the resolved winit fork
Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.
* docs: record native pinch verification and keep roadmap quotes contiguous
Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.
---------
Co-authored-by: FredApps <[email protected]>
development.md listed the other build inputs but not CRAFT_I18N_DIR.
Co-authored-by: Fredrik Hallin <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Since the craft framework port, Find tools and commands (Ctrl+K) listed every row
disabled, so Enter and clicks ran nothing. The open palette counted as a modal in the
app's command gate (menus::gated), and craft-libs applies that gate to the palette's own
rows, which it resolves and fires as the window under the palette has them.
- The command gate counts dialogs and prompts only. While the palette is open its modal
layer still keeps the keys and the controls under it from the commands; menus::gated
keeps the palette for the menu bar's keys and the native menu, as 0.22.0's menu gate did.
- The palette's tool rows fire tool.group with the group in a parameter, which nothing
handled; run_catalog_command now opens the named tool, as it does for tools.<id>.
- split_view_render::a_late_edit_turns_the_page_in_both_panes opens the palette with
Ctrl+K and types its query, and runs again; its row leaves docs/port-known-gaps.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alt.rs: main now resolves indirect structure kids (#5611), checks the parent and computes the new parent /K before it reads the page, and marks content through decode_page_streams/Marked (damaged streams refuse). This PR's mutation_mcids ownership checks replace main's has_child_structure + mcids in both actions, and its reachable-parent check runs with main's parent checks, before any write. Since main validates the parent first, the missing-/P + missing-content case now refuses with NoParent (test renamed), still without mutation. tools.rs and roadmap keep main's text plus this PR's refusal notes.
Main split organize/src/import.rs into import/{carry,combine,copy,fields}.rs and already made set_attachments UTF-16-safe and indirect-/Names-safe (this PR's other two hunks), so those take main's version. Ported the PR's core change: insert_file_pages now merges the source's catalog attachments via carry::collect_attachments + attachments::entries (made pub(crate)) + set_attachments. PR's engine regression test file kept as-is; parity evidence/notes merged onto main's entries (it/ paths); ROADMAP/docs entries added to main's text. cargo check -p pdfcraft-organize -p pdfcraft-engine --tests passes locally.
Auto-tag Apply finds text that repeats near the top or bottom edge of
most pages before assigning roles: the same text, digits and lone roman
numerals aside, within 4 units of the same height, on at least 40% of
the pages and at least two. It wraps that text in
/Artifact <</Type /Pagination /Subtype /Header|/Footer>> BDC ... EMC
with no MCID instead of tagging it (ISO 32000-2 14.8.2.2). A group of
changing, heading-sized text is left as headings. Running text is left
out of the body style and heading levels, MCIDs number the tagged
objects only, and AutoTagResult counts headers and footers.
a11y::running_text lists the findings without changing the document;
accessibility_autotag_apply returns them as running_text and
running_count, and its note says so.
Adapted from pdfcer (MIT, same author) at ccb49b46, block_layout.rs,
with distinct pages counted instead of objects.
Closes#7065
Co-Authored-By: Claude Opus 5.5 <[email protected]>
**Update on 2026-11-03 (`db57e7de`).** Merged main `ecdd1e65` and preserved both sets of parity evidence. The picker now uses the public `ComboBox::show_ui` response to track the open menu and clear its search when it closes. All 30 print UI tests passed locally on macOS arm64, including the three printer-picker regressions. Formatting and `cargo xtask parity` passed. [CI](https://github.com/storytold/pdfcraft/actions/runs/41673448570) and [SonarCloud](https://github.com/storytold/pdfcraft/actions/runs/41673448592) track this commit.
## What this changes
Fixes#4399.
The printer picker opens a wider, taller menu with a name filter. Long device names wrap, while Search and Save as PDF stay visible as the device list scrolls. Search ignores case, trims surrounding spaces and keeps the current destination until a row is chosen. Reopening clears the filter and brings the selected device into view.
The large-fleet test now checks that the selected row is between Search and Save as PDF after reopening, without manually scrolling at that point. This catches a broken automatic reveal instead of hiding it with a test-side scroll.
## How you verified it
- At `d14aed41`, the [hosted gate](https://github.com/storytold/pdfcraft/actions/runs/40305529036/job/121513571419) passes: 5,194 tests, 21 skipped. All three `printer_picker` tests explicitly pass, including the new reopening visibility assertion. Formatting, strict Clippy, layers, assets, parity and wasm checks pass in that gate.
- CodeRabbit's refreshed documentation check passes at 100%; both remaining test helpers are documented.
- The three original UI regressions failed against the original production module. They cover a 120-device fleet, Unicode/case matching, selection, reopening, no matches, long names and a 1024×768 window. A separate earlier before/after check caught an initially clipped Save as PDF row by physically clicking it.
- Earlier macOS validation inspected headless captures and exercised the real Print dialog through its control channel. Those are earlier-run results, not a new native macOS run on this head.
- The current local Windows Cargo 1.95 run cannot resolve the pinned craft-menu manifest and does not reach the UI tests. Runtime validation of this latest test update is the hosted gate above; no local test pass is claimed.
## Safety, provenance and reach
- [x] No new panicking shortcuts, unsafe code or input-derived indexing.
- [x] No new assets, fonts or dependencies.
- [x] Existing printer discovery, properties and print submission paths are used.
- [x] Automation remains available through `printers`, `printer_options` and `doc_print`; UI controls remain opt-in.
- [x] Printer-selection parity evidence and M10 progress notes are updated.
## Limits of verification
Physical printing was not tested. Keyboard injection into the earlier background native macOS window did not enter text; filter typing and selection were verified through egui_kittest.
AI assistance: implementation, tests and validation used Codex.
A launcher with StartupNotify=true passes an activation token in
XDG_ACTIVATION_TOKEN (Wayland) or DESKTOP_STARTUP_ID (X11) and shows a
busy cursor until a window hands it back. winit hands back only a token
given through with_activation_token, and eframe never gives one, so GNOME
kept the busy cursor for 15 seconds after PdfCraft's window appeared, and
a Wayland window opened without keyboard focus.
Vendored winit patch 14: the first window created without a token takes
the environment's. Later windows don't reuse the spent token; an empty or
oversized (over 1,024 bytes) token is ignored, since on X11 an oversized
one would fail window creation. The variable stays in the environment:
removing it while other threads may read it is unsound.
Tests: startup_token's policy tests in the vendored crate (three fail with
the policy reverted) and apps/pdfcraft/tests/winit_startup_token.rs, which
keeps the patch in the build (fails with the Window::new wiring reverted).