Commit Graph
7821 Commits
Author SHA1 Message Date
01ecdf2c17 Grid copies: one export-value rule, keep a widget's read-only flag
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]>
2026-11-27 18:51:58 -05:00
cbe3eb63cb Copy into Grid: say why the item is off, test the tool's refusals
- 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]>
2026-11-27 16:44:32 -05:00
54f1f92d32 Prepare a form: Copy into Grid from a field's menu
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]>
2026-11-27 14:02:43 -05:00
9ecb1f8823 Grid copies: own appearances, no XFA keys, refuse what can't copy
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]>
2026-11-27 09:38:48 -05:00
Karim 36b33e3363 M6: copy form fields into a grid
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.
2026-11-27 08:18:59 -05:00
FredApps c34c6c5a0b Merge pull request #8435 from storytold/ci/repair-main-after-8168
CI: repair main's gate after #8168 (combines #8177–#8180, #8314, #8316, #8317)
2026-11-27 13:38:56 +01:00
FredApps ecc5737401 Organize: keep the numbered-name attachment test running
The previous change dropped the test attribute from set_attachments_does_not_clobber_later_numbered_attachment_name.
2026-11-27 09:42:34 +01:00
FredApps e5fd870737 Organize: keep a renamed UTF-16 attachment key aligned when the original ends mid-unit
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.
2026-11-27 09:41:15 +01:00
FredApps 76aec3fb9b Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-27 09:39:04 +01:00
FredApps d492d88902 Merge pull request #4538 from EricKaden/fix/xfa-dynamic-render-required
XFA: a form saved with its pages is laid out when it requires dynamic rendering, unless signed
2026-11-26 21:17:32 +01:00
FredApps f53cab766c Merge main into #4538 2026-11-26 20:27:19 +01:00
FredApps 7b82e3e7ae deny: pass the licence, source and advisory checks again
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).
2026-11-26 20:08:24 +01:00
FredApps cbc1c52ba2 Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-26 20:07:50 +01:00
FredApps e862b77560 Merge pull request #4369 from EricKaden/fix/xfa-check-box-click-scripts
M12: XFA check boxes and radio buttons run their click scripts when a click changes them
2026-11-26 20:05:40 +01:00
FredApps 594e54fd03 deny: allow MPL-2.0 for unmodified third-party crates
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.
2026-11-26 19:56:56 +01:00
FredApps ecd98d7b15 Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-26 19:53:32 +01:00
FredApps e7860b9a38 Merge pull request #1021 from storytold/ci-speedup-nightly-platform-checks
CI: FreeBSD and Windows ARM64 nightly and on release, not per PR
2026-11-26 19:37:29 +01:00
FredApps 53b12279a9 Merge pull request #3523 from storytold/fix/3511-prune-image-resources
fix(edit): unlink unused image resources on delete
2026-11-26 19:37:22 +01:00
FredApps e7a812f531 Organize: read a little-endian attachment key in two-byte chunks with as_chunks 2026-11-26 19:34:24 +01:00
FredApps 18d9e1e66f Control test: find the shortcuts window's rows as a user does
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.
2026-11-26 19:28:20 +01:00
FredApps c7020ab493 Merge main into #4369
# Conflicts:
#	parity/acrobat-features.toml
2026-11-26 19:06:19 +01:00
FredApps 448cd37405 Merge main into #4538
# Conflicts:
#	parity/acrobat-features.toml
2026-11-26 19:06:02 +01:00
FredApps b3dcebb5f3 Merge pull request #4522 from EricKaden/fix/xfa-date-display-picture
M12: an XFA date field is shown through its display picture and typed in its edit picture's pattern
2026-11-26 18:53:01 +01:00
FredApps bd65e37b7d Merge pull request #3242 from MarekSpodBiedry/issue-3172
Fix blank glyphs inside overprinted numbers and word gaps next to taller glyphs in text extraction (#3172)
2026-11-26 18:28:15 +01:00
FredApps 54a3be06df Keyboard shortcuts window: labels in the interface language, grouped by menu
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.
2026-11-27 00:27:44 +07:00
FredApps ec0513414a Inserted attachments keep the encoding of a renamed name-tree key
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.
2026-11-27 00:27:44 +07:00
FredApps 294f8b29cf Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-27 00:11:39 +07:00
FredApps 1e05eefeae Merge main into #4369 2026-11-27 00:10:52 +07:00
FredApps e4144bfdde Merge main into #4538 2026-11-27 00:09:02 +07:00
FredApps a462b8c6ad Merge main into #4522 2026-11-27 00:01:37 +07:00
FredApps e334d6d4be Merge pull request #4527 from EricKaden/fix/xfa-ready-events
XFA: ready events run in the other viewer's order, and layout:ready again after a new layout
2026-11-26 17:50:24 +01:00
FredApps 36d9fd7268 Merge pull request #3280 from ahmadmuj/fix/pdfcraft-3221-stm-refusal
Refuse unsafe stream-qualified tag mutations
2026-11-26 17:48:11 +01:00
FredApps d3428827db Merge pull request #2763 from kavishkashehan726-sudo/claude/serene-hawking-sk6w13
fix(engine): validate signed XFA forms as the file was read (#2759)
2026-11-26 17:37:19 +01:00
FredApps 328a1bca2b Merge main into #4538 2026-11-26 17:33:12 +01:00
FredApps 05f31ac058 Merge pull request #5470 from croquete1/fix/4744-repeat-min-instances
M12: um subformulário repetido mantém o mínimo de instâncias de occur, seja qual for o dado (#4744)
2026-11-26 17:27:42 +01:00
FredApps 2d45b068fc Keep the line's word-gap threshold beside a superscript under the script size floor (#3172) 2026-11-26 17:26:45 +01:00
FredApps 781ab07f8c Merge main into #4369 2026-11-26 23:23:46 +07:00
FredApps 3b5d24fdf5 Merge pull request #2268 from oracola91/ci/dependency-hygiene
CI: refuse yanked crates
2026-11-26 17:23:15 +01:00
FredApps cb061454b2 Merge main into #4522 2026-11-26 23:20:14 +07:00
FredApps f555f1574c Merge pull request #4576 from jonathanwxh-cell/fix/sign-revision-structure-3998
sign: validate signature dicts and post-signing changes against signed revision (#3998)
2026-11-26 17:16:48 +01:00
FredApps 6f9c05d8a1 Measure a combining mark's word-gap threshold by its cluster base (#3172) 2026-11-26 23:09:32 +07:00
FredApps 51e0ee118a Merge pull request #2189 from oracola91/fix/package-licence-files
The AppImage and PdfCraft.app ship the licence files and NOTICE
2026-11-26 17:07:37 +01:00
FredApps dc64a6f83e Use main's highlight_fields location in the frame's highlight sync (#4527) 2026-11-26 23:07:19 +07:00
FredApps 227ae94b22 Merge pull request #1218 from cyfung1031/codex/ci-failure-observability
CI: keep independent gates running after earlier failures
2026-11-26 17:06:00 +01:00
FredApps 0b47a83928 Merge main into #4527 2026-11-26 23:05:58 +07:00
FredApps c7b433206c Merge main into #3280
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.
2026-11-26 23:00:01 +07:00
FredApps 4825ebfbf2 Merge pull request #3526 from EricKaden/fix/xfa-hanging-indent
M12: a negative XFA text indent hangs the first line
2026-11-26 16:53:39 +01:00
FredApps c2bd7c14b7 Merge pull request #4604 from mtlcl410/fix/xfa-script-relayout-full-refresh
M12: an XFA form laid out again by its scripts rebuilds its pages in the view (#4603)
2026-11-26 16:51:38 +01:00
FredApps ea25e82618 Merge remote-tracking branch 'origin/main' into ic51-3242
# Conflicts:
#	crates/render/src/text/layout.rs
2026-11-26 16:51:16 +01:00
FredApps 814e19b00d Merge pull request #6590 from eliets2/fix/issue-3147-image-arrange-and-remove-crop-report-suc
Refuse image arrange and crop removal that change nothing
2026-11-26 16:49:51 +01:00