A check box with several widgets is copyable only when every widget has
the same on state and the same export value. The forms layer's
`copyable_widget` now holds that rule and the engine's
`field_table::copyable` calls it, so the preview and the copy agree.
Before, a box whose widgets drew different on states without /Opt was
copied, and one whose /Opt repeated a single value was refused.
A copied check box gets its widget's export value as its /Opt when /Opt
lists one value per widget, and no /Opt otherwise, so the copy exports
what its source widget did.
A widget that is read-only through its own /Ff makes its copy read-only:
the copy has one dictionary, and the field's /Ff used to hide the
widget's.
The automation README and the parity note say which check boxes are
refused in the new rule's terms, and the parity entry lists the tests.
Co-authored-by: Karim <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The undo label is "Copy field into grid" and the parity title "Copy a
field into a grid", so no other product's wording is left. The parity
notes and the tool text say "value" rather than "initial value", and
the notes drop "actions", which no test checks.
- form_add_field_table no longer repeats the text-or-check-box test:
copy_edit refuses what field_table::copyable says no to, so the tool
and the menu refuse the same fields with the same Uncopyable reason.
The tool still checks the field and the widget exist.
- A disabled Copy into Grid... row says why on hover: several fields
are selected, or the field is not a text field or a check box with
one export value.
- New tests: the tool refuses source_widget without source_field, an
unknown field, a radio group, source_widget 0 and a widget past the
last, adding nothing; and the hostile-argument sweep sends every
hostile value as source_widget, with and without source_field.
Co-authored-by: Karim <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports #6012's menu and window onto the dialog host. A text field's or
one-value check box's right-click menu gains Copy into Grid...; it opens
the text field table window with that widget as the source:
- the grid starts as two copies below the field, else above, else to
the right, else to the left, always on the page; with no room the
app says so and nothing opens;
- an Area group sets the grid's left, top, width and height in points,
held on the page;
- every column is named after the first free Copy, Copy2, ... base, so
a column added in the window is a copy too (the review's naming
point);
- preview and Add fields run copy_edit, and the window's automation
fields add source, source_widget and rect.
The item is disabled with several fields selected or for a field a grid
can't copy. "Create Multiple Copies" is another product's wording; the
feature is called Copy into Grid here and in the parity notes.
The UI test styles a field multi-line with no background or border,
copies it from its menu, adds a column, and asserts every copy is named
as a copy and has the source's flags and look (the review's point that
a blank-field table would pass a count-only test), then that one undo
removes them.
Co-authored-by: Karim1125 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review fixes on #6012's copy_field and copy_edit:
- A copy no longer carries the source's private XFA keys (PCSom,
PCXfaNode, PCItems), so it is not bound to the template node the
source fills.
- Each copy gets appearance streams of its own (/N, /D, /R and every
check box state). Shared streams meant redrawing one in place, as a
password field's edit does, redrew the source and every other copy.
- copy_edit refuses a field a grid can't copy with
TableError::Uncopyable, so a preview never shows a check box whose
widgets export different values as valid. field_table::copyable is
the same test for menus.
- copy_field is split into helpers under 80 lines.
New forms tests: a transparent, borderless, multi-line source keeps its
look and flag in the copy after a save; a copy has no PCSom; filling a
copy leaves the source's appearance stream unchanged. The check box test
now asserts a different stream with equal content per state.
Co-authored-by: Karim1125 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cherry-picked from #6012 (ef57ba58d) onto main c34c6c5a0. Conflicts
resolved: CopyField sits beside main's field edits and clears the form
script snapshot like them; the copy label joins main's batch labels.
The Prepare a form menu and window parts are left out here because main
moved them onto the dialog host; the next commits port them. The
ROADMAP.md, docs/roadmap.md and docs/gaps.md edits are dropped.
A leftover last byte is not a unit, and readers leave it out when decoding. Dropping it before appending " (2)" keeps the suffix in the key's byte order, so the stored name is the decoded name plus the suffix rather than a misaligned string.
Allow CDLA-Permissive-2.0 (the certificate data in webpki-roots) and storytold's own repositories as git sources (vectorcraft-geom and vectorcraft-pathops come from storytold/vectorcraft). Lockfile only: url 2.5.8 to 2.5.9 (RUSTSEC-2026-0592, with form_urlencoded 1.2.3), async-executor 1.14.0 to 1.14.1 (yanked).
standards/licences.md already allows MPL-2.0 for dependencies used unmodified (file-level copyleft, no obligation on our code). The crate option-ext, pulled in by dirs through craft-settings, uses it, and the deny check failed without this identifier on the allow list.
The table lays out only the rows in view, so the test scrolls it to each command, and the keys the document view handles itself are listed under Show > Fixed Keys, so it picks that view before looking for them.
The window listed the command catalog the keys run on, which keeps English labels, so a translated interface showed English rows all under Other. It now lists each command as the menus label it, in the current language, with its English label kept for search, under the menu bar path that lists it, and relists them when the language changes while it is open.
A clashing key from an inserted or combined file is numbered as text, and " (2)" is appended in the key's own encoding: UTF-16 big- or little-endian after a byte-order mark, bytes after a PDFDocEncoding key. A little-endian key was read as PDFDocEncoding and rewritten as different UTF-16 text, so the renamed attachment lost its name.
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.