Commit Graph
6348 Commits
Author SHA1 Message Date
Jeremy c56a4b3399 docs(installer): note that the 32-bit all-users folder is Program Files (x86); tidy wording 2026-10-27 12:25:20 +00:00
jonathanwxh-cell f3861659e0 Merge remote-tracking branch 'upstream/main' into fix/cropbox-text-clipping
# Conflicts:
#	crates/render/src/text.rs
2026-10-27 20:18:31 +08:00
KenM76andClaude Opus 5.5 27a0cd6eb2 M6: joining radio buttons that share an export value keep sharing it
Review follow-up. A clash is checked against the group's own values only,
and each clashing value gets one fresh ChoiceN shared by every joining
button that had it, so a button repeated on another page stays in unison.
The group's value selects a moved button only when one of the group's own
buttons has it. A joining field that is its own widget leaves the
calculation order too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 08:17:02 -04:00
jonathanwxh-cell 49d14c3871 Merge remote-tracking branch 'upstream/main' into fix/footnote-ref-line-selection
# Conflicts:
#	crates/render/src/text.rs
2026-10-27 20:14:52 +08:00
Jeremy 315e7fad66 docs(installer): describe the per-user default install location and scope 2026-10-27 12:09:03 +00:00
KenM76andClaude Opus 5.5 a9ddf79a19 M6: a radio button renamed to a radio group's name joins that group (#4949)
Renaming a radio button to an existing radio group's name was refused as
a duplicate, so buttons placed separately could never become one group.
set_props now moves the renamed field's buttons into the named group
(ISO 32000-2 §12.7.5.2.4: a group is one field whose widgets are its
buttons). A clashing export value is renamed to the first free ChoiceN
in /AP /N, /D and /R; a moved button is on only if its value is the
group's value; merged field+widgets are handled on both sides (the
target split via split_merged, now shared with duplicate_field).
Refused when either group has /Opt, has no button, or the target is
locked.

Adapted from pdfcer (MIT, same author) 79870b56 and 116f48d3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 08:05:28 -04:00
Jeremy c1670d0aa5 fix(installer): keep the desktop shortcut on a machine-wide update; harden install-policy checks 2026-10-27 12:01:39 +00:00
Jeremy c39a0f3658 fix(installer): address scope and ARM64 review feedback 2026-10-27 12:01:39 +00:00
Jeremy 32df17722c feat(installer): default to a per-user ArtCraft folder 2026-10-27 12:01:39 +00:00
Combiler01 afbc1ed1b7 fix: address CodeRabbit review recommendations across edit, engine, and ui 2026-10-27 15:30:53 +05:30
KenM76andClaude Opus 5.5 fd8c8c185d fix(xfa): repair a BMP offset that points at the header's end with masks or a palette to follow
Review follow-up: an offset equal to the end of the info header is only
right when no bitfield masks or colour table come after it; otherwise the
pixels were read from the masks or the table. It is now repaired like an
offset inside the headers. Offsets strictly inside the masks or table are
still taken as given (they may come from an overstated biClrUsed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 05:43:31 -04:00
KenM76andClaude Opus 5.5 de9ab5370e fix(xfa): leave a 16-byte BMP header to the decoder; test core headers and a huge colour count
Review follow-up: the repair reads the 40-byte header's compression and
colour count, which a 16-byte OS/2 header does not have. New cases pin
a 12-byte core header (3-byte palette entries) and a biClrUsed of u32::MAX.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 05:03:47 -04:00
KenM76andClaude Opus 5.5 38c9482191 fix(xfa, create): read a BMP's pixels from after its headers when its offset points into them
LiveCycle Designer wrote BMPs whose file header gives bfOffBits = 0. image
(0.25) seeks to that offset as given, so the pixels were read from the file
header on and the picture was drawn shifted and wrapped around (#4937).

`pdfcraft_xfa::image::bmp_with_pixel_offset` recomputes the offset from the
info header (its size, BI_BITFIELDS masks in a 40-byte header, the palette)
when the declared one lies inside the headers and the computed one fits in
the file; anything else is passed through unchanged and not copied. XFA
pictures (size and decode) and `create::from_images` both go through it, so
pdfcraft-create gains a dependency on pdfcraft-xfa (L4 -> L3).

Fixes #4937

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 05:00:44 -04:00
RiceDee 7679f6b556 fix(edit): keep column frames local and clear stale history selections 2026-10-27 19:02:30 +11:00
Combiler01 446c6135ef fix(ui): duplicate xobject arrange/delete test and update parity evidence 2026-10-27 12:17:20 +05:30
songzhihui 0817ce2774 M2: keep roadmap review history in continuous blockquotes 2026-10-27 14:12:06 +08:00
RiceDee 6733d9eaee Merge main into feat/align-selected-lines 2026-10-27 17:09:44 +11:00
Claude f595a9677b Merge remote-tracking branch 'upstream/main' into fix/delete-one-radio-button
# Conflicts:
#	crates/engine/src/lib.rs
#	crates/forms/src/author.rs
#	crates/ui-egui/src/prepare.rs
#	parity/acrobat-features.toml
2026-10-27 06:03:23 +00:00
Claude 640d5718aa Merge remote-tracking branch 'upstream/main' into fix/page-render-warnings
# Conflicts:
#	crates/automation/src/lib.rs
2026-10-27 05:40:59 +00:00
RiceDee 296b930098 Merge main into fix/undo-in-open-text-editor 2026-10-27 16:34:44 +11:00
Combiler01 5cf09552ab Merge Conflicts #4889 2026-10-27 11:04:20 +05:30
Eric Kaden 8745623fca M12: opening a document leaves the field highlight the one in front reads
An open set the session's field highlight to the remembered Highlight fields for the new document's scripts, and the frame only set it back to the active document's afterwards: an edit of that document handled in between read the new one's default as app.runtimeHighlight. The open now passes the remembered setting in its own context (OpenContext::with_highlight) and the session's value stays (CodeRabbit, on #4691).
2026-10-27 00:39:05 -04:00
KenM76andClaude Opus 5.5 a7b07bfc56 fix(render): a stroke whose outline comes back with NaN is drawn, not dropped (#4907)
kurbo 0.13.1's stroker can give a cubic that is nearly a line (all control points within a
rounding error of its chord) a NaN join, and vello_common's `flatten::fill` drops any path
containing NaN, so the whole outline vanished. An Illustrator outline ending in
`73.763 -0.536 l 73.764 -0.536 73.764 -0.536 73.764 -0.536 c` did (#4907). kurbo tracks the
bug class in linebender/kurbo#617 and #519; #610 is unreleased.

Vendored vello_common patch (2): when the expanded stroke is not finite, `flatten::stroke`
strokes the path again with every quadratic or cubic whose control points lie within the
tolerance of its chord replaced by a line, one element out per element in. A finite outline
is unchanged, and a path with non-finite input is still dropped. `stroke` and
`StripGenerator::generate_stroked_path` take a `Clone` path; vello_cpu's callers pass
`&BezPath` and a copied slice iterator.

Tests: `flatten::tests::a_tiny_degenerate_cubic_does_not_drop_the_stroke` and the render
crate's `stroke_degenerate_cubic` pixel test fail with the fallback disabled;
`a_finite_outline_is_stroked_as_before` and `a_path_with_nan_is_still_dropped` are guards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 00:34:47 -04:00
KenM76andClaude Opus 5.5 3c6612a3f9 fix(forms-ui): measure auto-size text at no more than the screen-font bound
An auto-size single-line field's size follows its height, up to about 12,500 pt for a
14,400 pt field. The editor measured the line's width by laying it out at that size,
before `field_screen_font` clamps to `MAX_SCREEN_FONT`, and egui rasterizes every glyph it
lays out: one such measurement took 1.2 s in a debug build, on every frame. The width is
now measured at no more than `MAX_SCREEN_FONT` and scaled, which is exact up to the bound
and linear above it.

`tools::forms_ui::tests::a_line_is_never_laid_out_above_the_screen_font_bound` fails with
the bound removed (laid out at 12,522 pt).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-27 00:34:14 -04:00
Combiler01 2650cbc906 Merge branch 'upstream/main' into main with layout adaptation 2026-10-27 09:55:01 +05:30
Eric Kaden b811155c10 Merge remote-tracking branch 'upstream/main' into fix/cups-landscape-sheets
# Conflicts:
#	crates/print/src/lib.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/print_ui.rs
2026-10-26 23:36:05 -04:00
Eric Kaden d05dc93335 Merge remote-tracking branch 'upstream/main' into fix/xfa-relevant-print
# Conflicts:
#	crates/xfa/src/layout.rs
#	crates/xfa/src/pdf.rs
2026-10-26 23:28:48 -04:00
KenM76andClaude Opus 5.5 dffe6dd703 fix(edit, a11y): Q inside a text object restores the text matrices, as the renderer does
Inside a text object q/Q save and restore Tm and Tlm too (ISO 32000-2
§9.4.1, as corrected by the PDF Association's erratum,
pdf-association/pdf-issues #368). The renderer's saved state already
holds both. The text-editing interpreter and the heading detector kept
them across Q: text after Q was listed (and, once edited, moved) where
the q ... Q block left the pen, and a word continued after Q was split
("Chap ter One"). Both saved stacks now hold the two matrices.

Tests: pdfcraft-edit and pdfcraft-a11y
tests::q_inside_a_text_object_restores_the_text_matrices. Reverting
the edit fix puts the first case at y = 600, not 700; restoring only Tm
puts the T* case at 586, not 686; reverting the a11y fix reads
"Chap ter One". Each fails its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-26 23:24:24 -04:00
Cursor Agentandjonathanwxh-cell 14efab25da Merge upstream/main into prep/4596-merge-main
Keep the print module split and reapply the /Contents space join in
imposition::decoded_contents, matching the renderer and the organize pruner.

Co-authored-by: jonathanwxh-cell <jonathanwxh-cell@users.noreply.github.com>
2026-10-27 03:18:57 +00:00
Combiler01 85a4d35733 Review Fixes 2026-10-27 08:46:08 +05:30
KenM76andClaude Opus 5.5 cef9908343 Merge origin/main into fix/auto-size-follows-field-height
main deleted crates/engine/src/reexports.rs and moved its re-exports
into crates/engine/src/lib.rs; the comb_auto_text_size re-export this
branch added now sits in lib.rs. forms_ui.rs moved to
crates/ui-egui/src/tools/; the branch's hunks carried over unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
2026-10-26 23:11:08 -04:00
Eric Kaden de068dfcbe Merge remote-tracking branch 'upstream/main' into fix/xfa-enter-exit-on-focus
# Conflicts:
#	crates/automation/src/a11y.rs
#	crates/automation/src/lib.rs
#	crates/engine/src/edit.rs
#	crates/engine/src/session.rs
#	crates/ui-egui/src/editing.rs
2026-10-26 23:07:55 -04:00
songzhihui ba339b7141 M2: resolve CJK viewer PR conflicts after module splits 2026-10-27 11:01:49 +08:00
Eric Kaden c36a7b92ec Merge remote-tracking branch 'upstream/main' into fix/xfa-required-fields
# Conflicts:
#	crates/xfa/src/layout.rs
2026-10-26 23:00:08 -04:00
Eric Kaden 5de22e7645 Merge remote-tracking branch 'upstream/main' into feat/xfa-sign-events
# Conflicts:
#	crates/ui-egui/src/lib.rs
2026-10-26 22:33:07 -04:00
Eric Kaden c4353194a7 M9: the sign tab's parity evidence names its tests' new file
Main's module layout (#4889) moves the sign-tab unit tests to canvas/sign_tab_tests.rs.
2026-10-26 22:26:52 -04:00
Eric Kaden fd9a76e3ce Merge remote-tracking branch 'upstream/main' into fix/xfa-runtime-highlight
# Conflicts:
#	crates/automation/src/a11y.rs
#	crates/engine/src/edit.rs
#	crates/engine/src/session.rs
#	crates/js/src/lib.rs
#	crates/js/src/xfa.rs
#	crates/ui-egui/src/lib.rs
2026-10-26 22:25:06 -04:00
Eric Kaden aa5ec45ae5 Merge remote-tracking branch 'upstream/main' into feat/sign-tab-empty-signature-fields
# Conflicts:
#	crates/ui-egui/src/canvas.rs
2026-10-26 22:09:16 -04:00
Eric Kaden 1f85128c65 Merge remote-tracking branch 'upstream/main' into fix/choice-list-popup
# Conflicts:
#	crates/ui-egui/src/canvas.rs
#	crates/ui-egui/src/page_pointer.rs
2026-10-26 21:56:32 -04:00
alehel 993d3f9227 Merge remote-tracking branch 'refs/remotes/origin/main' into fix/background-hidden-by-page-backdrop
# Conflicts:
#	crates/automation/src/lib.rs
#	crates/edit/src/lib.rs
#	crates/engine/src/reexports.rs
#	crates/engine/src/session.rs
#	crates/ui-egui/src/lib.rs
2026-10-27 02:49:24 +01:00
Cursor Agentandjonathanwxh-cell c580b55055 Merge upstream main into prep/4013-merge-main-2
Two content conflicts, both from main splitting the files this branch edits.

crates/cos/src/document.rs: main moved Document into document/*.rs.
Keep that split. A missing /ID is still pdfcraft_crypt::file_id of the
encryption seed (document/open.rs); generated_id is gone. The regression
lives in document/tests.rs.

crates/engine/src/edit.rs: main moved EditCtx and run_edit into
edit/run.rs. Keep that split. Protect still draws its seed and default
owner password from getrandom on EditCtx and fails closed
(EditError::Protection) when the CSPRNG errors or returns all zeros.

Co-authored-by: jonathanwxh-cell <jonathanwxh-cell@users.noreply.github.com>
2026-10-27 01:48:59 +00:00
HiteshandClaude Opus 5.5 64fba7d177 feat(edit): Esc in an open paragraph selects its box, so Delete removes it
In Edit text & images a click inside a paragraph opens it for typing, and selecting the whole
box meant aiming for its thin frame: a press a few pixels inside put the caret in the text
instead (#2203). Esc in the inline editor now leaves the text and selects the paragraph's box,
as Acrobat does, so Esc then Delete removes it, the arrow keys nudge it and its frame drags it.
Esc still discards an unapplied draft.

The editor asks `ObjectSelection` to select the paragraph, and the next `prepare`, which has the
document's inventory, selects it after its own Escape check, so the Esc that closed the editor
cannot clear the new selection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 07:17:41 +05:30
aiongg 1dd2737b47 Merge pull request #4889 from aiongg/layout
refactor: shared module layout (craft-contrib#20)
2026-10-26 21:31:30 -04:00
Cursor Agentandjonathanwxh-cell b5b42a3318 Merge upstream main into prep/4013-merge-main
The only content conflict was crates/engine/src/lib.rs: main moved
EditCtx and run_edit into edit.rs, while this branch taught Protect
to draw keys and salts from getrandom and fail closed. Keep main's
module split and apply that CSPRNG behaviour on EditCtx in edit.rs.
The regression test imports EditCtx and run_edit from the edit module.

Co-authored-by: jonathanwxh-cell <jonathanwxh-cell@users.noreply.github.com>
2026-10-27 01:16:56 +00:00
songzhihui 43d2491f5e M2: preserve CJK viewer fallback across engine split 2026-10-27 09:00:39 +08:00
aiongg f022ef0671 style: cargo fmt on moved files 2026-10-27 00:34:32 +00:00
aiongg 323172e860 test(automation): end the file access scan at the test module, not at a cfg(test) use 2026-10-27 00:34:32 +00:00
aiongg d449f2ce63 docs: name the ui-egui files by their new directories 2026-10-27 00:34:32 +00:00
aiongg 064632e0e8 test(ui-egui): name the page modules by their new directories 2026-10-27 00:34:32 +00:00
aiongg 3dbea4e7a0 docs(parity): point evidence at the ui-egui files' new directories 2026-10-27 00:34:32 +00:00