Commit Graph
6827 Commits
Author SHA1 Message Date
Combiler01 7f42c375dd ui: translate search match-count text and remove unused toggle_pill 2026-11-02 12:45:46 +05:30
mtlcl410andClaude Opus 5.5 60fd71b7fe Merge storytold/pdfcraft main into fix/xfa-table-row-height
No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 15:15:42 +08:00
mtlcl410andClaude Opus 5.5 31db4dbbfc M12: a split row group keeps its section's border; an unnamed growable field grows
A growable lr-tb/rl-tb subform split at a content area's bottom now breaks
the flowed subforms round it there (break_frames), as a break between their
children does, so a bordered or filled section keeps a closed part on each
page instead of losing its border.

An unnamed growable multi-line field is measured with its template text.
A nameless field takes no part in data binding (XFA 3.3 p. 194), and its
SOM context ends in its parent, so its data is not looked up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 15:15:33 +08:00
mtlcl410andClaude Opus 5.5 093ade2740 Merge storytold/pdfcraft main into fix/listbox-selected-indices
No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 15:03:42 +08:00
Combiler01 80ffea6df4 ui: remove misleading cancel button from preferences dialog 2026-11-02 12:28:19 +05:30
Combiler01 0c822af3b1 ui: implement browser-style in-situ text search and highlight in preferences 2026-11-02 12:00:53 +05:30
Harsh Verma fa818ccc08 Merge branch 'storytold:main' into feat/preferences-cards-refresh 2026-11-02 06:00:41 +00:00
Combiler01 6aa88171d3 ui: register theme card focus upfront and assert TwoUp continuous preservation 2026-11-02 11:24:53 +05:30
Combiler01 dac706f3b2 ui: fix vertical layout containment for theme preview cards 2026-11-02 11:02:02 +05:30
Combiler01 8867d15d18 ui: align navigation rail accessibility labels with existing integration test 2026-11-02 10:46:10 +05:30
Combiler01 ec533af1bb ui: fix two-page continuous scrolling and add keyboard focus indicators 2026-11-02 10:43:27 +05:30
d3384340a6 M7: make page-mark replacement transactional (#5657) (#5704)
* M7: make page-mark replacement transactional (#5657)

* ROADMAP: drop the header line (the log entry stays)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 23:49:18 -05:00
8faebd0d96 Fix Matrix::invert rejecting valid matrices with a small scale (#5703)
* Fix Matrix::invert rejecting valid matrices with a small scale

Found while testing crates/content/src/lib.rs:732-735 (Matrix::invert)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Matrix::invert: a matrix whose inverse overflows has none

A subnormal determinant passes the relative check, and dividing by it
overflows (CodeRabbit on #5703).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-11-01 23:49:14 -05:00
f035218cb4 fix(ui): don't check recent files on the UI thread at startup (#5682) (#5692)
* fix(ui): don't check recent files on the UI thread at startup (#5682)

Restoring settings dropped recent files whose files no longer exist by
asking the file system about each one on the UI thread, before the first
frame. On a network mount that has stopped answering (davfs2 in the
report) that call blocks in the kernel, so the window never appears.

Settings now keep every recent entry when they load. Once the window is
up, a worker checks the restored paths and each frame drops the ones it
has found gone. An entry it hasn't reached, or can't tell about (the
mount answers with an error), stays listed. A worker stuck on a dead
mount stays stuck, but nothing waits for it. This follows the pinned
folders' worker.

Fixes #5682

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Recent files: a file opened while the check is pending stays listed

The worker's answer that a restored path is gone is out of date once the
user opens that path; keep the new entry (CodeRabbit on #5692).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-11-01 23:49:10 -05:00
mtlcl410andClaude Opus 5.5 a3842f4a85 M5: a locked Replace Text proposal's window shows its replacement read-only
For Replace Text as main writes it (#5688), the window shows and edits the
caret's text, but the caret is the group's subordinate: locking the comment
sets /Locked on the strikeout, the primary, and the caret's own flag left the
text editable from the window. The text box is now read-only when either is
locked. The tests' comments no longer call this a review point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 12:44:50 +08:00
mtlcl410andClaude Opus 5.5 9ffb00f8fd Merge storytold/pdfcraft main into feat/comment-popups
Conflicts, each where both sides added at the same place; both kept:
- crates/annot/src/tests.rs, crates/automation/tests/it/automation.rs and
  crates/ui-egui/tests/it/comments.rs: this branch's pop-up tests and main's
  new tests.
- crates/ui-egui/src/i18n/{ca,fi,ro,vi}.tsv: this branch's pop-up lines and
  main's image-paste and Home lines. No key is added twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 12:40:36 +08:00
mtlcl410andClaude Opus 5.5 f668a8a64b M5: a Replace Text pair is one pop-up window, with the replacement as its text
A group member (/RT /Group, as Replace Text's strikeout and caret are) is
part of its comment, not a reply (ISO 32000-2 §12.5.6.2), so the window
lists no group member among the replies. For Replace Text as main writes it
(the replacement on the caret, grouped under an empty strikeout, #5688), the
window shows and edits the caret's text, the proposal's.

A second test pins that a double-click on the proposal opens one window, the
primary's, in both layouts; the page's hit test already picks only the
group's primary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 12:40:27 +08:00
Combiler01 5f07da4419 ui: modernize preferences dialog with card-based layout
- Replace cluttered settings list with clean, modular card containers
- Integrate interactive real-time search box flush with card boundary
- Combine page display and continuous scrolling into a unified segmented pill
- Enable smooth scrolling with dedicated animation duration
- Enhance vertical scrollbar spacing and layout geometry
- Update unit and integration tests across layout, appearance, and theme
- Credit @Combiler01 in contributors/people.toml
2026-11-02 09:58:24 +05:30
mtlcl410andClaude Opus 5.5 5b196f9079 Merge storytold/pdfcraft main into fix/freetext-redact-appearance
Conflicts:
- crates/annot/src/modify.rs: main (faebcfd26) made the same change to
  border_width_of (appearance::border_width) and added ink_rect_for_width
  after it; kept main's body and new function, and this branch's doc comment.
- crates/annot/src/tests.rs: both sides added tests at the same place; kept
  this branch's text-box tests and main's freehand-highlight test, each with
  its own closing braces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 12:19:17 +08:00
mtlcl410andClaude Opus 5.5 512eee1316 Merge storytold/pdfcraft main into feat/callout-reshape-1152
Conflicts:
- crates/annot/src/modify.rs: the create imports; kept this branch's
  callout helpers and main's ink_bounds.
- crates/annot/src/tests.rs: both sides added tests at the same place
  (the callout tests here, main's freehand highlight test); kept both.
- crates/automation/tests/it/automation.rs, crates/ui-egui/tests/it/comments.rs,
  crates/ui-egui/src/tools/comments/tests.rs: both sides added tests or
  helpers at the same place; kept both, each with its own closing brace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 12:18:38 +08:00
mtlcl410andClaude Opus 5.5 2b08357b13 Merge storytold/pdfcraft main into fix/stroke-degenerate-and-dash
Conflicts:
- vendor/README.md: the hayro and hayro-jbig2 rows are main's (this PR
  does not change them). The hayro-interpret row is main's, with this
  PR's (61) entry inserted after (59) in both the patch column and the
  tests column; no other number moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 12:17:42 +08:00
mtlcl410andClaude Opus 5.5 f21fe84490 Merge storytold/pdfcraft main into fix/xfa-table-row-height
Conflict in crates/xfa/src/tests.rs: both sides added tests at the same place (this branch's table row tests, main's tests for draws turning about their anchor). Both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:54:27 +08:00
mtlcl410andClaude Opus 5.5 848e028b60 Merge storytold/pdfcraft main into fix/ocg-auto-state-view
Conflict in vendor/README.md (hayro-interpret row): main added patches (71), (72) and (74); this branch adds (67). main's row is kept, with (67) placed before (71) in the patch list and in the tests list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:54:25 +08:00
mtlcl410andClaude Opus 5.5 959a85dbf5 Merge storytold/pdfcraft main into fix/zero-area-fill-and-clip
Conflict in vendor/README.md (hayro-interpret row): main added patches (71), (72) and (74); this branch adds (65). main's row is kept, with (65) placed after (64) in the patch list and in the tests list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:54:24 +08:00
mtlcl410andClaude Opus 5.5 edd16f9f8a Merge storytold/pdfcraft main into fix/radio-numeric-export
Conflict in crates/xfa/src/tests.rs: both sides added tests at the same
place (this branch's radio data tests, main's tests for draws turning about
their anchor). Both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:45:19 +08:00
mtlcl410andClaude Opus 5.5 17ad6701d0 M12: wireless89's reset and reopen tests for opening scripts (#4790)
Adds three regression tests from wireless89's review of #4791:
- xfa_opening_reset_reaches_a_section_shown_by_an_earlier_script (a text field of a section
  an earlier opening script showed is reset in the widget and the saved data);
- xfa_deferred_choice_resets_preserve_the_reset_value_through_reopen (the same for choice
  lists: multi-select with structured picks and an empty or set default, and a label saved
  as its export value; widget, open datasets and saved datasets checked separately);
- xfa_initialize_scripts_that_hide_subforms_lay_the_form_out_once now edits the check box
  and checks fields, pages and the value through three save/reopen cycles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:25:04 +08:00
mtlcl410andClaude Opus 5.5 1f51b5c246 Merge storytold/pdfcraft main into fix/xfa-open-scripts-complete
Conflicts, each resolved by keeping both sides:
- parity/acrobat-features.toml (dynamic XFA entry): main added the rotate
  evidence and the note on draws turning about their anchor; this branch
  added its open-script evidence and notes. Both kept on the one line.
- crates/engine/src/tests.rs and crates/xfa/src/tests.rs: both sides added
  tests at the end of the file. Both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:24:57 +08:00
mtlcl410andClaude Opus 5.5 ca258d8fb5 Merge storytold/pdfcraft main into fix/search-ligature-accent-hyphen
No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 11:22:48 +08:00
mtlcl410andClaude Opus 5.5 2b74366c64 M6: the engine checks that the XFA data layer and forms spell state names alike
pdfcraft-xfa keeps its own copy of pdfcraft_forms::name_text (it can't
depend on forms), and a radio group's value only finds its button while the
two agree. xfa_and_forms_spell_names_alike compares them, and checks that
forms' name_bytes reads the copy's spelling back, for UTF-8, '#', Shift-JIS
and stray bytes. With the copy writing lowercase hex it fails at the
Shift-JIS case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 10:53:08 +08:00
mtlcl410andClaude Opus 5.5 48c6a85cee M6: arrow keys in a same-name twin list box step through its own rows
The focus now carries the focused field's object, so the overlay, the
draft commit and the focus frame use the twin that has the focus rather
than the first field with its name. The arrow keys pick by position
through the same twin mapping a click uses (list_pick_edit), so an arrow
in a twin listing its options in another order picks its own next row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 10:47:28 +08:00
mtlcl410andClaude Opus 5.5 24e0d070ef M10: the print crate's tests delay-load the print DLLs too (#2630)
The pdfcraft-print unit-test executable imported windows.data.pdf.dll and
prntvpt.dll at load time (the windows crate binds them with raw-dylib), so
on a Windows installation without them it could not start, and the tests
of the missing-DLL guard never ran there. crates/print/build.rs now passes
/DELAYLOAD for both and delayimp.lib on MSVC, as the applications' build
scripts do. Link arguments from a build script reach only this package's
own executables, so dependents are unaffected.

dumpbin /imports: before, both DLLs under "the following imports"; after,
under "the following delay load imports". A copy of each test binary with
prntvpt.dll renamed to a DLL that doesn't exist: the old one exits with
0xC0000135 (STATUS_DLL_NOT_FOUND) before main, the new one starts and runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 10:23:34 +08:00
dotCooCoo c927f620a9 Merge main into feat/redacted-file-name 2026-11-01 18:20:56 -08:00
dotCooCoo f13d6db75a Merge main into discard-search-index 2026-11-01 18:09:23 -08:00
dotCooCoo 40d7c6cbd7 Merge main into discard-external-refs 2026-11-01 17:58:56 -08:00
mtlcl410andClaude Opus 5.5 40260c4a6d M7: the signature mark stays until the save succeeds, and a reload forgets it (#2149)
Answering the lock question removed the placed-signature mark before the save ran, so a
save that then failed or was cancelled didn't ask again. The answer now only lets the save
that follows go ahead without asking; the mark is removed when a save succeeds, as before.
A reload from disk replaces the document, so it forgets the mark too (a failed reload keeps
it).

Review on #2348 (CodeRabbit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 09:42:26 +08:00
mtlcl410andClaude Opus 5.5 7a84239ad7 Merge storytold/pdfcraft main into fix/indexed-short-lookup
main gave the colour-space constructors a nesting depth (ColorSpace::within) and read the
Indexed lookup once by type (patch (71)). Indexed::new keeps this PR's recovery (hival
truncated and clamped, black past a short table, no table skipped) with main's depth bound;
vendor/README.md takes main's rows with this PR's patch (60) entries after (59).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 09:29:41 +08:00
mtlcl410andClaude Opus 5.5 78c5262600 M2: test the W* clip of overlapping zero-area subpaths too
disconnected_subpaths_on_one_line_leave_the_gap_between_them_unpainted
checked overlapping subpaths drawn in opposite directions under f* only.
It now checks the W* clip of the same path keeps their union too: with
the clip area pushed under the path's own even-odd rule instead of
non-zero, the overlap goes missing and the new assertion fails.

Review on #4433 (CodeRabbit, crates/render/tests/it/zero_area_fill_clip.rs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 09:25:20 +08:00
mtlcl410andClaude Opus 5.5 8f75c414e9 M5: comments are sized with the border width they are drawn with
border_width_of, which fits a text box's new text and sizes callouts,
polygons and line endings, read only /BS /W (and turned a negative width
into 0), while the appearance draws with appearance::border_width: /BS /W,
else /Border's third number, 1 for an unusable one. A text box with
/Border [0 0 4] and no /BS was drawn with a 4-pt border but fitted as if
it had a 1-pt one, 6 pt shorter. border_width_of now is that rule.

Review on #4365 (CodeRabbit, crates/annot/src/modify.rs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 09:11:53 +08:00
mtlcl410andClaude Opus 5.5 95ba736d66 M5: a callout knee with a coordinate that isn't a number takes the bottom side whatever the other
callout_side's doc says a coordinate that isn't a number takes the bottom
side, but every comparison with NaN is false, so the other coordinate
alone decided: [NaN, y above the box] gave Top, [x left of it, NaN] Left.
A NaN coordinate is now checked before any comparison.

Review on #4094 (CodeRabbit, crates/annot/src/create.rs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 09:07:57 +08:00
mtlcl410andClaude Opus 5.5 7e1e5c0dbb M2: remove two rebase backups committed by mistake
crates/ui-egui/src/panels/right.rs.orig and crates/automation/src/json.rs.orig
were left by a merge tool in 211718668. Neither is compiled (the modules
load right.rs and json.rs), and right.rs.orig still drew the old flat
Layers list, so a reader searching the tree could take it for the code.

Review on #4396 (CodeRabbit, crates/ui-egui/src/panels/right.rs.orig).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 09:04:14 +08:00
mtlcl410andClaude Opus 5.5 c7404f44bc M7: reverting forgets a signature placed since the last save (#2149)
File > Revert discards a signature placed since the last save, but its marker stayed, so the
next save asked to lock a signature that was gone whenever the saved file held an earlier
Fill & Sign mark. A successful revert now clears the marker.

Review on #2348 (CodeRabbit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 08:41:35 +08:00
mtlcl410andClaude Opus 5.5 a06ff3769f M7: locking a signature clears the comment selection (#2149)
Review follow-up on #2348: flatten_fill_sign_in refreshed the view after Edit::FlattenFillSign but kept view.comments.selected. The placed signature is usually the selected comment, and once it is part of the page its (page, index) names nothing, or another comment after the indices shift. Both Lock now and the save-time Lock and save go through flatten_fill_sign_in, so both clear it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 08:31:10 +08:00
mtlcl410andClaude Opus 5.5 78e15fc4cf i18n: translate the signature-lock prompts into the newer catalogues (#2149)
Catalan, Sorani, Finnish, Hindi, Indonesian, Korean, Lao, Norwegian Bokmål, Romanian, Albanian and Thai joined main after this branch was written; their coverage tests ask for these strings too. AI-assisted, as noted in each catalogue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:31:10 +08:00
mtlcl410andClaude Opus 5.5 b92d937c91 M7: offer to lock a signature right after it's placed, and keep the switch in the panel (#2149)
benandez's review suggestion on #2348. Right after Fill & Sign places a
signature or initials, a notice says "Signature added. Others can move it
until it's locked." with Lock now, which flattens the marks into the page
(undoable) without saving; the save that follows then has nothing to ask
about. The placed-signature mark is kept, so undoing the lock brings back the
notice and the save-time question, which stays as the fallback. Dismiss hides
the notice until the next signature. No notice on a digitally signed document
or when saves lock anyway. The "Lock into the page when saving" switch is
now once, in the panel's Sign yourself section, no longer in the Sign menu
over the page. The three new strings are in all 22 catalogues (AI-assisted,
not reviewed by native speakers).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:30:45 +08:00
mtlcl410andClaude Opus 5.5 58e28e1950 M7: a web save forgets the placed signature too (#2149)
Review follow-up on #2348: as the native save does, so a later save with the
question turned back on doesn't ask about what was already saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:30:44 +08:00
mtlcl410andClaude Opus 5.5 30aa8793f6 M7: the lock question keeps the changed-on-disk question, skips signed documents and undone marks (#2149)
Review follow-ups on #2348 (benandez): a dialog an answer opened this frame
isn't closed with it; documents with digital signatures aren't asked, since
locking changes them after signing; a placement that was undone asks nothing;
the mark is forgotten when the tab closes; the other catalogues carry the
AI-assisted header; parity evidence lists the new tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:30:44 +08:00
mtlcl410andClaude Opus 5.5 c2b1de2b8b M7: a signature lock that fails keeps the question and the preference (#2149)
Review follow-up on #2348: the document stays tracked as holding a placed
signature and "Don't ask again" is remembered only once locking succeeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:30:22 +08:00
mtlcl410andClaude Opus 5.5 97f514d632 M5: Vietnamese for the lock-signatures prompt (#2149)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:30:21 +08:00
mtlcl410andClaude Opus 5.5 07a5f3f3a1 M5: the first save after placing a signature asks to lock it into the page (#2149)
A Fill & Sign signature stays a removable comment unless Flatten Fill &
Sign when saving is on, which sat only in Preferences. The first save
after a signature or initials is placed now asks: Lock and save flattens
the document's Fill & Sign marks, Keep editable saves as before, Cancel
saves nothing, and Don't ask again turns the answer into the
preference. The Sign menu carries the same switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:30:09 +08:00
mtlcl410andClaude Opus 5.5 0e70564cec M6: radio states are spelled as the AcroForm reads them, # and non-UTF-8 bytes too
radio_widgets read each button's on-state name with from_utf8_lossy,
while the group's value it is compared with comes from pdfcraft_forms,
which writes '#' as #23 and bytes that are not UTF-8 as #XX (name_text).
A state /A#23B (the bytes A#B) or a Shift-JIS /#82#CD then matched no
button: saving wrote the state's text as the item instead of the button's
/Opt entry, and opening returned a state no button has. The states are
now spelled with the same rules (a copy of name_text: this crate can't
depend on pdfcraft-forms).

Also pins that taking the XFA out notes no lost data when the data names
the shown button by its /Opt entry while saving would write its /PCOn.

Review on #4784 (CodeRabbit, crates/xfa/src/data/values.rs and
crates/engine/src/xfa_form.rs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-02 08:18:59 +08:00