Commit Graph
8306 Commits
Author SHA1 Message Date
00c357ac71 fix(xfa): remap bookmarks and named destinations to the pages a relayout writes (#9027) (#9080)
* fix(xfa): remap bookmarks and named destinations to the pages a relayout writes (#9027)

After an XFA form is laid out again, the document's pages are replaced, so
bookmarks and named destinations that named the old pages pointed at orphaned
objects. Remap them to the replacements by page position (a destination naming
a page the layout dropped goes to the last page written); destinations naming
untouched pages or non-page targets are left alone.

- xfa/pdf.rs: page_list (the pages a layout replaces, in reading order);
  write_form captures the old pages before page creation and remaps
  destinations after the new pages are written; remap_destinations handles
  /Dests, /Outlines (bookmark items, /Next chains and /Kids), and /Names
  (Dests and Pages categories); remap_dest / remap_action / remap_name_tree
  update indirect objects in place.
- xfa/fixtures.rs: dests_shell, a shell with /Dests, /Names and two /Outlines
  items (a /Dest and a GoTo action) naming the placeholder page.
- engine/tests.rs: xfa_relayout_keeps_bookmarks_and_named_destinations_on_the_pages_it_writes.

Co-authored-by: Copilot <[email protected]>

* fix(xfa): bound the destination remap's walks and remap what they omit (#9027 review)

The remap that points bookmarks and named destinations at the pages a
relayout writes could walk a malformed document forever, and silently left
a destination stale when a search hit its bound:

- xfa/pdf.rs: page_list errors on a page tree that lists a node twice,
  and on one past MAX_PAGES_SEARCHED, before any page is replaced; the
  outline walk follows each item's /First child (the spec's way) and
  errors at the bound instead of truncating; /Names categories are
  handled per category, the Pages one's values being page references
  remapped through the map directly (remap_page_ref); remap_dest,
  remap_action and remap_name_tree take a visited set, a /D chain or
  /Kids chain that repeats being an error before the recursion
  continues.
- xfa/fixtures.rs: the name-tree key is the string (end), as the spec
  requires.
- xfa/pdf.rs tests: each fix is guarded by a test that fails without it;
  automation hostile_args: the cyclic page tree, destination, and name
  tree are in the hostile-input sweep.

Co-authored-by: Copilot <[email protected]>

* fix(xfa): count pages and bookmarks at acceptance, pin the position remap (#9027 review)

- page_list: the 10,000-page bound is checked when a leaf is accepted, so a tree of
  exactly the bound followed by an empty /Pages node is still walked.
- the bookmark walk checks `seen` before the item bound, so a repeat of an item
  already counted is not a new item.
- tests for 3 old pages onto 2 and 2 onto 3, each with a bookmark, a /Dests entry and
  a /Names entry, plus one for each bound case above.
- remap_destinations' doc says what an error leaves behind: the walks after the bookmark
  walk can fail once earlier ones were written.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* fix(xfa): a page tree the remap cannot list is a warning, not a failed layout (#9027)

Main's relayout tests (cyclic page trees, a shared-reference page subtree past the walk bound)
expect the layout to be written. The destination remap now reports what it could not do as a
warning and keeps the layout, instead of failing the whole relayout.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2026-12-04 16:12:36 +01:00
86db88e630 Fix #9016: draw added Greek and Cyrillic text with the bundled Inter face (#9078)
* Fix #9016: draw added Greek and Cyrillic text with the bundled Inter face

The Add-text path only accepted WinAnsi-encodable text (plus Arabic/Hebrew/
Thai via their shaped faces), so Greek and Cyrillic were refused even though
the bundled Inter face draws them. first_undrawable now uses undrawable_char
(a char is undrawable only if WinAnsi lacks it AND the Inter face can't
draw it), and draw now sets the embedded Inter face for such text, mirroring
doc_create and text_edit.

Co-authored-by: Copilot <[email protected]>

* Fix mixed-script added text and the Greek drawing test

Address the CodeRabbit review findings on the #9016 fix:

- draw_laid_shaped: a run the shaped layout leaves as a Piece::Latin
  but that WinAnsi cannot encode (Greek or Cyrillic) is now drawn with
  the bundled Inter face, embedded, instead of being silently lost to
  WinAnsi '?'. The face is added only when a run needs it, so pure
  Hebrew (or Arabic/Thai) text is unchanged.
- tests: the Greek drawing test now selects the added item's content
  stream by its /PCMark /Added tag (the page's own "Hi" stream also has
  a Tj, so the first Tj stream was the wrong one) and verifies the
  embedded face (Type0, FontFile, ToUnicode to Greek). A new test covers
  mixed Hebrew + Greek text, asserting the Greek run uses the embedded
  face and the Hebrew run the shaped face.

Co-authored-by: Copilot <[email protected]>

* fix(edit): a second Greek item no longer takes the first item's font name (#9016)

draw_inter_face and the mixed-script path embedded the bundled face into a
dict that held none of the page's fonts, so the resource was always PCFull0
and `write` set it over any other PCFull0 the page already had. Seed the dict
with the page's PCFull* entries first, so embedding picks a free name or reuses
an identical face. The mixed-script Latin branch now draws a soft hyphen as a
hyphen, as draw_inter_face does.

Review: https://github.com/storytold/pdfcraft/pull/9078#pullrequestreview-6187655188

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* test(ui): Greek added text is drawable with the default font (#9016)

Two UI tests still asserted that a standard font refuses Greek phi, which this
change makes drawable through the bundled Inter face. Assert the new behaviour;
an explicit document font keeps working and keeps its resource. Matches the
updates the 0.23.2 release branch made to the same tests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2026-12-04 16:12:30 +01:00
ae3c7b7592 chore(deps): pin craft-libs to the rev the 0.23.2 release builds against (9888a5855) (#9308)
Release has built against craft-libs 9888a585 since 0.23.2; main stayed on 6afe03f5b, so
main could not take the release-only UI fixes that use the newer craft-libs APIs (centred
TextField, tab wheel browsing, bounded document preview width, wheel messages for fitted
page spreads). This moves main to the same rev; Cargo.lock only changes the craft-libs source.

The 12 craft-libs commits behind this rev are being put on craft-libs main in
https://github.com/storytold/craft-libs/pull/5306.

Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2026-12-04 16:12:23 +01:00
jweaver3 f20205bf31 fix(js): XFA scripts reach fields and subforms named with accented letters (#8876) (#8877) 2026-12-04 15:39:09 +01:00
ece4d2201d feat(ui): a Full screen button in the page controls (#2995) (#3209)
* feat(ui): a Full screen button in the page controls (#2995)

The page controls in the right rail had no way to enter Full screen
mode; only View ▸ Full screen mode and Ctrl/Cmd+L did. A button directly
below Zoom out now runs the existing view.full_screen command, after the
view borrow ends as the Page display button does. It reuses the
translated "Full screen mode" label and the shipped monitor icon, since
the corner-bracket icons look like the fit toggle in the same column.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Expose full screen button toggle state

* Check the rail toggle using its pinned accessibility contract

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 15:08:30 +01:00
b026f59f32 fix(annot): a comment without text is saved without /Contents (#7434) (#7662)
* fix(annot): a comment without text is saved without /Contents (#7434)

Every new comment got a /Contents entry, an empty string when nothing
was typed, and clearing a comment's text wrote an empty one too. macOS
Preview marks a markup comment that has the key, even empty, as holding
a note, so highlights made in PdfCraft showed a note bubble there.
Acrobat writes no /Contents for a highlight without a note.

New comments now get /Contents only when they have text, and clearing a
comment's text removes it. Summaries already read an empty /Contents as
no text, so nothing else changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(annot): test the empty-comment case with an open pop-up (#7434)

The test described a double-click but made a closed pop-up. It now
opens it, checks it is open, and checks the comment is still saved
without /Contents.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Align empty comment property with omitted contents

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 15:07:54 +01:00
Eric Kaden 30dfab44ff Forms: a push button takes the focus on a click and as a Tab stop (#4589)
* M6: a field's mouse and focus actions run as the pointer and the focus move

Every trigger of ISO 32000-2 Table 197 runs its action: Mouse Enter and Exit as the pointer arrives over a widget and leaves it, Mouse Down on a press (before the field the focus leaves commits), On Blur and On Focus with #4359's focus scripts, and Mouse Up on the release once they have run, which a push button's click now waits for too. Order and event.name values measured black-box on a synthetic form. forms::widget_action reads any trigger's action; Session::run_field_script runs a script as that field event; form_trigger runs one headlessly.

* M6: only a click's field actions may print, open links or Save As

A field's Mouse Enter, Mouse Exit, Focus and Blur actions run without anyone asking: their scripts' requests to print, open a link or Save As, or show a side panel are dropped and noted on the console, and an action that runs a menu item, opens a link, submits or picks a picture doesn't run. Mouse Down and Up, a click, keep them.

* M6: a trigger's reset or show/hide keeps the typing a press committed

A press commits the field it leaves into the view's queued edit, and a Mouse Down reset or show/hide action replaced that queued edit, losing the typing. A trigger's reset or show/hide now applies at once, and the queued commit applies after it, as another viewer orders a press's Mouse Down before the field left commits. action_edit builds the edit for both a push button's click and a trigger.

* M6: a push button takes the focus on a click and as a Tab stop

Another viewer gives a push button the focus when it is clicked, and stops at it on Tab (probe 10: Tab from a text field reached the button; a click on it ran Mouse Down, the field left's Blur, its Focus, then Mouse Up). PdfCraft's push buttons took none, so their On Focus and On Blur never ran and Tab skipped them. A click now focuses the button as it does a check box, Tab and Shift+Tab include push buttons, and Space or Enter presses the focused button. The check box's keyboard holder is shared as hold_keys.

* M6: a test that XFA focus scripts may not print, open links or Save As

The XFA runner already drops these for any activity but a click; the test holds enter and exit to the same rule as an AcroForm field's Focus and Blur.

* M6: hovering a form that may not be filled in runs none of its actions

Mouse Enter and Exit ran where the document's security forbids filling in the form, as Mouse Down and the other actions don't: a script changing a value was refused on every pass, with a message each time. The hover is noted only where the form may be filled in.

* M6: a reset by a field's action shows in the editor of the field being edited, as a script's change does

* M6: a push button scrolled out of view lets go of the focus, as a check box does
2026-12-04 14:42:36 +01:00
Marco ArnulfoandFredApps 640ce697e8 M11: show art, trim and bleed boxes on the page (view.show-page-boxes) (#2779)
* M11: show art, trim and bleed boxes on the page (view.show-page-boxes)

Preferences > Documents and view outlines the bleed, trim and art boxes a
page sets, as Acrobat's Page Display preference does: only boxes the page
defines, clipped to the media box, placed through the crop box and /Rotate
and cut at the page edge. Art red, trim green, bleed blue, the colours of
Acrobat's Set Page Boxes > Show All Boxes. Remembered across restarts,
page-boxes on|off on the command line and control channel.

* Fix page box preference test selection

* Keep page box options in sync and mark box edges by type

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 14:34:13 +01:00
ad27770a23 fix(ui): the watermark and background previews show a file's picture (#2817) (#8679)
* fix(ui): the watermark and background previews show a file's picture (#2817)

The Add Watermark and Add Background dialogs previewed a mark taken
from a file (an image, or a page of a PDF) as a grey frame with the
file name, so its size, offset, turn and opacity could not be judged
before OK. The preview now draws the picture itself, where OK puts it.

The engine's new mark_picture brings the file in the way OK does
(mark_source: an image turned upright by its EXIF orientation, a PDF
page as an upright form), draws it alone on a page of its shape and
renders it small, once on white paper and once over black, so its own
transparency survives. The dialog renders it on a worker thread, keeps
it in the draft as a texture keyed by the file and the page, and shows
the frame with the file name until it arrives or when the file can't
be drawn. It is laid out as picture() in pdfcraft-edit lays it out:
fitted to the page at the scale, centred plus the offset, turned, at
the opacity. A watermark on top is drawn over the page. A background,
or a watermark behind the page, shows where the page is white: the
page's picture is multiplied by the picture, averaged over a fine
grid, as a background colour already tints it.

Item 14 of #2817.

* deps: ctutils 0.4.5 for RUSTSEC-2026-0385

* parity: evidence paths where main moved the tests (tests/it/)

* style: cargo fmt after the merge

* engine: the picture sheet's black background has no backdrop to replace (main's new Background field)

* engine: the mark-picture tests encode their PNGs with craft-image-codecs, as the engine does since main dropped the png crate

* fix(ui): a file background previews nowhere the page's own backdrop hides it

The colour tint already left out pages that keep their backdrop: a scan, or a
white backdrop with Replace unticked. The picture did not, so the preview
showed a background OK would not. backdrop_hides is now the one test both use,
and such a page previews with no picture at all.

The new test fails with the check removed ("page 1 keeps its backdrop").

Raised by CodeRabbit on #3024.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ui): a mark from a file is clipped at the page edge in the preview

OK crops a watermark or background at the page edge, but the preview drew it
under the pane's clip, so a scaled, offset or turned mark ran past the page
into the pane. It is now drawn with the clip narrowed to the page.

The test uses the landscape page, where the pane is taller than the page, and
fails with the clip removed.

Raised by CodeRabbit on #3024.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ui): a picture behind the page shows only where the page paints nothing

The watermark and background previews drew a file's picture behind the
page by tinting the page picture with it, so the page's own colours were
multiplied by the picture: an opaque blue box over a red picture previewed
black, though after OK it stays blue.

The preview now paints white paper, the picture, then the page rendered
on a transparent sheet (Document::pages_on_glass), which is clear only
where the page paints nothing. The sheet drops the marks an Update
replaces and, for a background with Replace ticked, the white backdrops
OK replaces. Until the sheet is rendered nothing is drawn behind the
page. The per-cell averaging grid the tint needed goes.

a_picture_behind_the_page_is_covered_where_the_page_paints reads what
the preview's meshes show at the box: with the old preview it fails
(#00_00_00_FF, black). the_pages_on_glass_are_clear_only_where_they_paint_nothing
fails with the sheet rendered opaque (alpha 255 on bare paper).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ui): render a page sheet only at a positive, finite scale

A zero, negative or non-finite preview scale no longer reaches
render_page: glass_scale refuses it and the picture behind the page
is simply not drawn. The engine gains a test that pages_on_glass with
replace_backdrops takes a page's own white backdrop away.

Revert proof: with glass_scale returning Some for every scale,
a_sheet_is_rendered_only_at_a_positive_finite_scale fails (Some(0)
for 0.0); with replace_backdrops ignored,
the_pages_on_glass_lose_the_white_backdrop_a_background_replaces
fails (alpha 255 on bare paper).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(ui): read mesh triangles with as_chunks

Clippy on the CI toolchain rejects chunks_exact with a constant size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ui): show the file name while a picture's page sheet is missing

A picture placed behind the page draws on the page's transparent sheet.
While that sheet renders, or when it can't be rendered, the preview fell
back to Layer::Hidden and drew nothing, the same as a mark the page's own
backdrop hides. The user saw no sign of the picture they had chosen.

file_layer now returns None when the sheet is missing, so the overlay
takes its name-frame arm. A picture the backdrop hides is still not drawn,
and asks for no sheet. The sheet is rendered only when there is a picture.

Test: a_picture_behind_a_page_whose_sheet_is_missing_shows_the_file_name_frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Format marks_ui.rs after the merge with main

rustfmt joins the overlay() signature onto one line (the merge with main left it split).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9

---------

Co-authored-by: Guillem Hermida <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-12-04 14:23:37 +01:00
e4f370cda3 fix(edit): preserve existing fonts when adding text (#7762) (#7766)
* fix(edit): preserve occupied font names when adding text

* fix(edit): preserve reused indirect font resources

* fix(edit): reuse a matching font whatever the order of its entries

Dict compares its entries in order, so a Helvetica on the page with the
entries we write in another order was not reused, and added text took a
suffixed resource it didn't need. The fonts are compared by key now.

A test keeps a Helvetica that differs only in its /Encoding, has none, or has
an entry more: the Courier fixture also differs in /BaseFont and would pass
without the encoding check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Adapt mixed-script font test to DrawnItem

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 14:22:40 +01:00
a8176e3194 M5: change the text range a highlight, underline, strikethrough or squiggly marks (#4824) (#8555)
* M5: change the text range a highlight, underline, strikethrough or squiggly marks (#4824)

pdfcraft_annot::set_quads and Edit::SetMarkupRange give an existing text markup
new quadrilaterals (colour, note and replies kept, one undo step). The comment
context menu gets Mark the selected text instead, and comment_edit takes
find/all/quads. Appearance redraws read indirect /CA, /C and friends, and a
squiggly's zigzag has a total vertex budget.

* M5: refuse empty markup quadrilaterals before changing comments (#4824)

* M5: check markup refusals before promoting inline annotations (#4824)

* M5: keep every squiggly area zigzagged within its drawing budget (#4824)

* M5: refuse markup redraws before promoting inline annotations (#4824)

* M5: fit the markup range tests to main and list comment_edit for highlights (#4824)

The rebase onto main left two tests on APIs main has since changed:
appearance::build now takes the document, and the UI test selects a
comment through session.comments.select_only and runs commands, options
and undo through the harness helpers. The comment.highlight parity entry
now also lists comment_edit, which changes a highlight's marked text.

Co-authored-by: AdrianTM <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* M5: check restyles before promotion and store quads in drawing order (#4824)

set_style checks the target and every Replace Text partner before
annot_ref can promote an inline annotation, so a refused restyle (one
too large to redraw, one that cannot be drawn, one locked) adds no
object and leaves /Annots as it was. A partner the change leaves alone
(a strikeout under a width-only restyle) is still checked for its lock
only.

set_quads stores corners given around the area (ISO 32000-2 §12.5.6.10,
Table 182) in the order the appearance draws, so a highlight fills its
area instead of crossing itself; a quad whose first two corners are
opposite each other is refused.

Co-authored-by: AdrianTM <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* M5: compare signs when testing a quad's outline for crossings (#4824)

z_order multiplied two side values to test whether an edge pair
crosses. For a tiny quad (edges near 1e-100) the product underflows
to zero, the crossing goes unseen and a perimeter-order quad is stored
unchanged. Compare the signs of the two values instead.

Co-authored-by: AdrianTM <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Adrian <[email protected]>
Co-authored-by: KenM76 <KenM76>
Co-authored-by: AdrianTM <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: KenM76 <[email protected]>
2026-12-04 14:13:56 +01:00
FredApps aac23fb4d8 Merge pull request #8591 from KenM76/feat/bates-files-dialog
Add Bates numbering to a list of files from the app
2026-12-04 13:37:05 +01:00
FredApps 4b03632ebb Merge pull request #8558 from KenM76/feat/form-field-grid-copies
M6: copy a form field into a grid (#6012)
2026-12-04 13:35:45 +01:00
FredApps fb62b2d4fa Merge pull request #8576 from KenM76/fix/add-text-marks-modified
Add text: choosing another tool applies the text being typed
2026-12-04 13:34:42 +01:00
FredApps 359a3857f5 Merge pull request #8756 from KenM76/feat/xfa-breaks-leaders
M12: XFA breaks per instance, to content areas, with startNew (form.xfa-dynamic)
2026-12-04 13:26:20 +01:00
8db03bbe3f fix(ui): All tools ▸ Audit space usage opens the Space Audit (#8993) (#9004)
* fix(ui): All tools ▸ Audit space usage opens the Space Audit (#8993)

The Space Audit shipped (Document Properties ▸ Space Audit and the
Optimizer's button), but the Compress a PDF catalogue entry still said
Planned (M11) and had no command behind it. Register optimize.audit,
open the stand-alone Space Audit dialog from it, and mark the entry
Ready.

* fix(ui): the Space Audit shows only the active document's figures

A finished audit was written to the shared result whatever document it
measured, so a late audit of one document could replace another's, and
the dialog showed the previous document's rows while the new measure
ran. Take in a result only when it is the active document's at its
current edit generation, and clear the rows and say "Measuring…" until
that result arrives.

* fix(ui): the Space Audit dialog measures again after an edit lands mid-measure (#8993)

pass dropped a stale audit result but left space_audit_pending set, and only
the Properties tab starts a new measure, so the stand-alone and Optimizer audit
dialogs could stay on "Measuring..." with an empty table. Start the measure for
the current edit once when it is pending, the result is not for this edit and no
job exists for it, as Properties does. Adds a test that edits before the first
measure finishes.

Review: https://github.com/storytold/pdfcraft/pull/9004#pullrequestreview-6187726404

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2026-12-04 13:19:28 +01:00
FredApps 4f76f1af37 Merge branch 'main' into feat/form-field-grid-copies 2026-12-04 12:55:02 +01:00
FredApps ec828d0093 Merge branch 'main' into feat/bates-files-dialog 2026-12-04 12:54:56 +01:00
FredApps 9128fbca65 Merge branch 'main' into feat/xfa-breaks-leaders 2026-12-04 12:46:15 +01:00
FredApps 4a4f857e0f Merge branch 'main' into fix/add-text-marks-modified 2026-12-04 12:45:06 +01:00
简直蠢丶andjianzhichun bb669c7a4c ui: the start screen's drop hint uses the catalog's full sentence, so it is translated (#9208)
Co-authored-by: jianzhichun <[email protected]>
2026-12-04 12:40:40 +01:00
FredApps 7b50cfaa7f Merge pull request #4564 from dotCooCoo/fix/automation-camera-xfa-warnings
fix(automation): page_enhance_camera reports the XFA data it could not write
2026-12-04 12:35:48 +01:00
Djelli96 02a29d8bca Fix selection actions staying hidden after highlighting text (#8874)
* Fix selection actions staying hidden after highlighting text

* Exercise selection toolbar focus suppression with selected page text

* Format the selection toolbar visibility guard
2026-12-04 12:34:54 +01:00
FredApps fabd0f5030 Merge pull request #2729 from rangoDJ/feat/web-embedded-mode
feat(web): embedded mode hides external community links (#2490)
2026-12-04 12:34:46 +01:00
Sandip PatelandCopilot d89be1e19b Translate command-bound control labels via the catalogue (#9036)
Command-bound buttons (the Open... button on the tab strip, the 'Expand
all tools' / 'Back to all tools' buttons in the Tools panel header, and
the fit toggle on the view rail) took their label from the command's
English name, bypassing the translation system, while the menus showed
the same commands translated.

Add english_label(id) and control_label(id) to the UI command helpers:
control_label routes the command name through i18n::menu_label with the
command id as the key, the same way the menus do. A missing translation
shows in English and never blocks. Each affected button now sets an
explicit translated label alongside its .command(id) binding, which keeps
the command binding (enabled state / activation) while the label is
translated. The theme button already carried a translated label and is
left unchanged. The label is a UI-only display property; the command id
and binding are unchanged, so the automation interface is unaffected.

Fixes #8960

Co-authored-by: Copilot <[email protected]>
2026-12-04 12:30:39 +01:00
f0f42a3fe6 edit: restyling part of a paragraph keeps rows that start raised on their own baselines (#8879)
* fix(edit): keep rows that start raised on their baselines when restyled

Restyling part of a paragraph takes the styled rewrite, which read each
row's baseline from its first run. A TextLine's baseline is the raised one
(the interpreter starts a run at Tm x (0, Ts), ISO 32000-2 9.3.7), so a row
starting with a footnote mark or an exponent was lifted by that run's rise:
colouring a word in "2x plus one" (the 2 raised 4 pt) redrew the row 4 pt
up, and a row added below such rows took a 4 pt larger step.

Every place the styled rewrite reads a row's baseline now takes the rise
off first: the paragraph anchor, RowSpacing::place (both cases),
source_baseline, the source leading, and the offset back into each
segment's own text matrix. Each run's own Ts is drawn on top as before.

- TextLine::rise(): the rise a run starts drawn with, in user space.
- raised_row_tests pins the row baselines, the added-row step, paragraph
  gaps with spacing set, and a paragraph given a size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(edit): measure a run's rise as its height across the baseline

TextLine::rise() scaled Ts by the length of the text-to-user matrix's
y axis. On a slanted matrix that axis is longer than the distance the
rise moves the baseline (Tm [1 0 0.5 1 72 700] with 4 Ts read as 4.47),
so the unraised baseline came out wrong. Scale by the y axis's
component square to the baseline instead: on upright text that is the
user-space height the rise moves it, and a quarter-turned run still
reads its rise (the y axis's plain vertical part is 0 there).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 12:16:36 +01:00
bmh129andClaude Opus 5.5 116224fa72 fix(js): a value a script assigns with field.value is shown through the field's Format script (#9140) (#9141)
* 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]>
2026-12-04 12:00:15 +01:00
Aleksander HelgakerandClaude Opus 5.5 5f2226bfb6 fix(ui): unused document-tab space moves the window on macOS (#8867) (#9015)
#8816 forwarded drags in the empty title-bar space after the tabs and
Open to the window, but only for integrated frames. macOS draws an
inset frame, so the space still did nothing there. Accept inset frames
too, and send a double click through double_click_action so macOS
follows the system's title-bar setting (zoom or minimise), as the rest
of the title bar does.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-12-04 11:58:57 +01:00
FredApps 62aa8e2504 Keep the saved stamp centered on the clicked PDF page [skip ci] (#8968)
Reported-by: @johnnybestro (storytold/pdfcraft#8956)
2026-12-04 11:57:40 +01:00
FredApps 53e6453661 Refresh Organize thumbnails after a page rotation or document switch (#9072)
A view with no per-page revisions keyed every thumbnail on a constant
generation, so a rotated page kept its old picture and a second document
with the same page sizes could reuse the first one's. Key the revision on
the document id and its edit generation.

Split out of #8823 so it can land on main on its own.
2026-12-04 11:56:50 +01:00
FredApps 6ed2b9dab1 Preserve the normal Windows frame when closing a minimized window [skip ci] (#8952)
(cherry picked from commit 29fca6d43d)
2026-12-04 11:56:37 +01:00
Aleksander HelgakerandClaude Opus 5.5 00efb51d60 fix(ui): the rail's page box fits four-digit page numbers (#9041) (#9042)
The page box takes the rail's width, as the zoom field does, and a
"page/count" position that is wider than the rail breaks after the slash.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-12-04 11:53:51 +01:00
FredApps 0885691b8f Merge current main and validate embedded mode values 2026-12-04 11:38:54 +01:00
jweaver3andFredApps 23fe7035bf M4: a drawn crop rectangle opens Set Page Boxes to fine-tune before cropping (#5695) (#7793)
* M4: a drawn crop rectangle opens Set Page Boxes to fine-tune before cropping (#5695)

Releasing a rectangle with the Crop tool no longer crops at once. Set Page
Boxes opens with the crop box's margins taken from the rectangle, for that
page alone, so the margins can be typed exactly before OK; Cancel crops
nothing. A double-click still opens the dialog from the page's own box, and
the tool still goes back to Select after one crop.

* fix(crop): Set Page Boxes applies a drawn rectangle to the page it was drawn on (#5695)

A crop rectangle drawn on a page mostly scrolled away (the bottom of one
page above the next) left the next page current: the page shown most
becomes current again once the press is over. Set Page Boxes then
seeded from and cropped that page instead.

The rectangle now carries its page, and BoxesDraft::page names the page
the dialog is for, so seeding, the preview and OK all use the page the
rectangle was drawn on, whichever page is current. Opening the dialog
any other way, OK and Cancel clear it.

* fix(crop): Set Page Boxes forgets the drawn page however it closes, and OK checks it is still there (#5695)

- The page a crop rectangle was drawn on is cleared when the dialog
  closes by any route (OK, Cancel, Escape, a click outside), so opening
  it again some other way, as the control channel does, is for the
  current page.
- OK resolves the page as the dialog shows it (BoxesDraft::page_or):
  one deleted while the dialog is open gives way to the current page,
  so what is shown and what is changed stay the same page.

* fix(ui): a crop rectangle's Set Page Boxes draft stays with its document

A rectangle drawn with the Crop tool seeds Set Page Boxes for its page,
but the dialog and OK read the active document. Another document
coming forward while it was open (the system opening a file already in
a tab focuses that tab) showed the draft over that document, and OK
cropped its page of the same number. The draft now records the
document it was drawn in; while another one is active the dialog
closes and OK applies nothing.

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 11:35:20 +01:00
FredApps 2248bb0fd4 Merge branch 'main' into fix/automation-camera-xfa-warnings 2026-12-04 11:33:52 +01:00
40c0271fba Limit text comparison to selected pages (#6507)
* Limit text comparison to selected pages

Comparing every page is slow and noisy for large documents when only one page changed. Scoping the diff to chosen pages makes the result focused and faster.

Add an optional pages argument to doc_compare and Session::compare_pages that filters both documents' words to the listed 1-based pages before running the existing comparison, keeping Session::compare unchanged for all pages.

Test: compare_pages_limits_text_comparison failed before the change and passes after.

* Repair review branch integration

* Tighten the change after a final review

* Tighten the change after a final review

* Address review for pull request 6507

* Format the files this pull request changes

* Address remaining review requests

* Align compare and automation changes with the current main

* Format the deletion-mark regression test

* Address review for pull request 6507

* Repair review branch integration

* Repair review branch integration

* Update the annotation tests for the new Style, SaveOptions, LinkAction and Shape fields

* Format the files this pull request changes

* Format the files this pull request changes

* Select the compared pages in the split document tools and restore main's text elsewhere

* Drop the PDF/A verification test that belongs to another change

* Address review for pull request 6507

* Format the files this pull request changes

* Repair review branch integration

* Tighten the change after a final review

* Tighten the change after a final review

* Repair review branch integration

* Address review for pull request 6507

* Format the files this pull request changes

* Address review for pull request 6507

* Format the files this pull request changes

* Tighten the change after a final review

* Tighten the change after a final review

* Repair review branch integration

* Repair review branch integration

* Tighten the change after a final review

* Repair review branch integration

* Tighten the change after a final review

---------

Co-authored-by: eliets2 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 11:14:53 +01:00
54865fd623 fix(measure): reject an out-of-range page and a negative or huge snap tolerance (#7435)
* fix(measure): reject an out-of-range page and a negative or huge snap tolerance

* review: validate the snap tolerance before reading geometry (coderabbitai/validation after extraction)

* review: raise the measure_snap tolerance schema to the runtime bound (coderabbitai/schema maximum)

* review: keep the 10000-point measure_snap tolerance bound in schema and handler

---------

Co-authored-by: gmrmad1 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 11:09:19 +01:00
cd5c601357 Edit text: Bold, Italic and other format changes keep the selected word selected (#8596)
* fix(edit): Bold and other format changes keep the selected word selected

Applying a format to the open paragraph cleared its selection, so the
editor showed a caret at the end of the text and the next letter typed
landed there instead of replacing the selected word. refresh_source
already drops the selection when the rewritten text differs, so
applied() no longer clears it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(edit): the format panel follows the kept selection after a font change

format_panel_shows_selection_size_and_updates_after_font_applied read
"Mixed" right after applying Times to a selected word, which only held
because the selection was dropped. It now checks the selected word reads
Times, then collapses the selection to a caret before reading the whole
block as Mixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 10:53:59 +01:00
Dylan M. TaylorandFredApps 4228044d87 fix(ui): closing a side panel keeps its rail icon (#8831)
A side panel's tab close, Close Group and Close Others took panels out of
the dock layout, and with them their rail icons, so Comments, Bookmarks,
Tags and the rest could not be opened again from the rail. A close now
collapses the rail to its icons, as clicking the open panel's icon does.

Co-authored-by: FredApps <[email protected]>
2026-12-04 10:18:38 +01:00
8b956258bd ui: Set Page Boxes preview fills the room above the buttons and resizes with the dialog (#9076)
* ui: Set Page Boxes preview fills the room above the buttons and resizes with the dialog

The preview was a fixed 72x96 sample in a dialog that could not be
resized. It now takes PictureSize::Fill inside a full-width stack, and
its slot runs from its top down to the body's end, which the dialog's
footer closure records in temp memory under the dialog's layer (the top
of the footer's content less the section gap). The row is laid out
before the footer, so it reads the previous pass's value (a live edge
drag lags by one pass and settles on release); with nothing stored yet
the slot takes its 120 floor. The slot height is floored to whole
points so a fractional start doesn't overflow the body.

The dialog is resizable, opens at 560x860 and has a least size of
420x640: at 420 wide the fields take 445 above the preview and the
footer 58 below it, so 623 is the least that keeps the 120 floor. A
window shorter than that clamps the dialog and the body scrolls.

Tests: the preview fills the room at the default size, at the 150%
interface size, through drags down to the least size (with "Pages from"
selected), and scrolls into view in a 1920x560 window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ui-egui): ask for the pass that reads the page-boxes body end

The preview sizes itself from the body end the footer stored in the pass
before, but storing it did not schedule that pass, so with nothing else
asking for a frame the preview could stay at its least size until input.
The footer step now requests a repaint when the stored end is new or has
moved by half a point or more.

Tests: a_new_body_end_asks_for_the_pass_that_reads_it pins the request
(fails with it removed); set_page_boxes_preview_fills_the_room_on_first_open_without_input
opens the dialog and runs only the frames the app asks for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9

---------

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 10:11:33 +01:00
fae6ae474b fix(organize): preserve indirect page label styles and starting numbers (#8647)
* fix(organize): preserve indirect page label styles and starting numbers

* Bound shared page-label reference lookup work

Charge each reference lookup to the existing shared traversal budget and test repeated scalar aliases before any mutation.

* parity: list the scalar-reference budget test as number_pages evidence

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(organize): cap written label trees by the reader's cost

The reader charges a tree written by set_page_label_ranges for the node,
its reference, each entry and each entry's indirect label dictionary:
2 + 2N. The writer refused only N >= MAX_LABEL_TREE_WORK, so it could
write a tree it then refused to read. Both the writer and the
extract/delete merge now check the same cost before changing anything.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: royalgardist <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:51:00 +01:00
2679cf1863 fix(redact): Sanitize removes page thumbnails with private data (#6749) (#6766)
* fix(redact): Remove Hidden Information's private data takes page thumbnails (#6749)

A page's /Thumb is a picture of the page as it was, but Sanitize and Remove
Hidden Information left it, so a sanitized file still showed what had been
removed from the page. Strip /Thumb with the other private data keys, so the
category counts and removes it and Sanitize does too.

* fix(redact): take /Thumb from page dictionaries only

/Thumb is a page's entry. Elsewhere it can be a name a producer chose, such as
a collection item's field, so sweeping it like the other private data keys
would count and remove that data too. Count and remove thumbnails per page
instead.

* fix(redact): find thumbnails on pages the page walk does not reach

The page walk stops at its node and copy limits and never visits a page
outside the tree, yet a full save still writes such a page when a
destination names it, thumbnail included. Look at every object of the file
that says it is a page as well.

* fix(redact): Sanitize removes the thumbnail of a typeless page leaf the page walk never reached (#6749)

The page walk stops at its limits, and a leaf of /Kids without /Type /Page is then
found by neither the walk nor the /Type scan, so a full save kept its /Thumb.
page_thumbnails now also takes every leaf that a /Kids array names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(redact): Private data takes /Thumb only from the leaves of page tree nodes (#6749)

The /Kids fallback read /Kids from every dictionary, so a widget named by a form
field's /Kids that carried its own /Thumb entry was counted as a page thumbnail
and removed. Only the children of a node with /Type /Pages, or reached from the
catalog's /Pages, count, and a child whose /Type is not /Page does not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(redact): Private data skips a page tree leaf whose /Type is not /Page (#6749)

The leaves from the page walk were kept whatever their /Type, so an annotation
named by a page tree's /Kids lost its own /Thumb entry, which the /Kids fallback
already left alone. Both now take only a leaf with no /Type or /Type /Page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:42:28 +01:00
e9200b2c5a fix(ui): dismissable signature problem banner (#8637) (#8641)
* fix(ui): dismissable signature problem banner (#8637)

The "At least one signature has problems." banner cannot be dismissed, so it takes up screen space indefinitely (#8637).

Adds a Dismiss (x) button to the signature status bar, matching every
other notice bar (disk-changed, cut-pages, lock-offer, secured/form).
Dismissal persists for the document across redraws and reloads.

- canvas.rs: add signature_dismissed field to DocView, initialized and
  carried over on document replacement.
- bars.rs: signature banner gets the same Dismiss button as the other
  notice bars.
- tests/it/signing.rs: the_signature_problem_banner_can_be_dismissed
  asserts the banner shows after signing, disappears on Dismiss, and
  stays gone on redraw.

Fixes #8637.

* fix(ui): dismissing the signature banner reveals the notices behind it (#8637)

A dismissed signature banner returned before the form, security and
warning notices were evaluated, so on a signed form the notice area went
empty and the form notice's Highlight fields control was unreachable.
Skip only the dismissed banner and let the remaining notices show; a
changed signature state still brings the banner back.

Adds a signed-form regression test: after dismissal the form notice and
its field-highlight control show and stay, and trusting the signer
brings the signature banner back in front.

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:08:52 +01:00
d5bdac7b21 fix(fonts): several fsType embedding bits resolve to the least restrictive (#8659)
* fix(fonts): several fsType embedding bits resolve to the least restrictive

What was wrong: validate() refused every font with the Preview & Print bit
(0x0004) set, even when the Editable bit (0x0008) is set too. Fonts in the
wild set several of bits 1 to 3: every TeX Gyre and Latin Modern face carries
fsType 0x000C, so none of them could complete a source subset or be loaded
for Edit text.

What changed: permits_editable_embedding() applies the OpenType rule. For
OS/2 versions 0 to 2 the specification says the least restrictive of several
bits takes precedence, and Restricted takes effect only when the
sub-field is exactly 2. So Editable wins over Preview & Print and Restricted;
Restricted alone, Preview & Print alone and Bitmap-only (0x0200) still refuse.

* docs(fonts): say the fsType rule ignores the OS/2 version

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Christian Dietrich <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
v0.23.2-nightly.20261204.47294886849.1.gd5bdac7b2151
2026-12-04 09:00:40 +01:00
26e88babe9 M3: an attachment's declared size is shown beside its counted size when they differ (view.attachments-panel) (#8594)
The attachment listing preferred /Params /Size (ISO 32000-2 §7.11.4) to
the bytes an unfiltered stream holds, so a file declaring 999,999 bytes
over 10 was listed as 999,999, and a negative /Size was cast `as usize`.

Unfiltered streams are now counted, and a /Size that disagrees is kept as
Attachment::declared_size; a filtered stream keeps its declared size,
unchecked, since counting it would mean decoding it. An empty /Filter
array counts as unfiltered; a /Size that is not a non-negative integer
is ignored. doc_info gives declared_size, and the Attachments panel row
says "the file says N" beside the counted size.

Render tests pin the counted/declared pairs for lying, honest, absent,
negative, filtered and empty-filter cases; an automation test checks the
same through doc_info. All three fail with the old reading.

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:50:54 +01:00
d9926554ae fix(organize): drop bookmarks of deleted pages (#2902) (#8646)
* fix(organize): drop bookmarks of deleted pages

Deleting a page used to strip the destination from its bookmarks but leave
them in the outline, pointing nowhere. A bookmark that ends up with no
destination and no children is now taken out of the outline; one with
children stays as a heading for them.

Fixes #2902

* fix(organize): cascade orphan bookmark removal

Decide orphans by a fixpoint over the items that lost their
destination, so a parent whose children all go is removed too.
Use a HashSet in unlink_items.

* fix(organize): drop headings emptied by later deletes

Pick orphan candidates among all destinationless outline items,
so a heading kept by an earlier deletion goes once its last child
does.

* fix(organize): prune only bookmarks this deletion emptied

The orphan pass took every outline item with no /Dest or /A as a
candidate, so any delete_pages call, and every replace_pages call
(which ends by deleting its temporary copies), removed bookmarks that
never had a destination. Seed the pass with the items whose
destination this call removed; a destinationless heading still goes
once every child of it goes, so the cascade and the later-deletion
case keep working.

Tests: a placeholder bookmark and a destinationless heading over a
placeholder survive delete_pages and replace_pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf(organize): prune emptied bookmarks with a work queue

The repeat-until-stable loop rescanned every outline item once per level
removed, so a deep chain cost depth x items. Each item now counts its
children still present; the queue starts from the bookmarks this
deletion stripped and each removal notifies its parents, so the work is
linear in the outline. The rule is unchanged, and a deletion that strips
no bookmark returns early. A 2,000-level chain test guards the cascade
(about 4 s on the old loop).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(organize): move bookmark pruning into its own function

Keeps drop_destinations_to under 80 lines; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf(organize): walk the outline once when pruning emptied bookmarks

prune_emptied and unlink_items walked each item's children with a fresh
seen set, so K items whose /First all lead into one chain of M items cost
K x M time, and prune_emptied kept K x M parent entries. outline::tree
walks the outline once with one shared seen set and lists each item under
one parent, the first in listing order, so the counts, the parent links
and the relinking are linear. A parent whose /First or /Last still leads
to a removed item it does not own in the walk is relinked too, so no link
reaches a removed bookmark.

deleting_a_page_under_headings_sharing_one_chain_stays_linear: 4,000
headings sharing one 4,000-item chain to the deleted page. 0.11 s with the
change; 13.5 s and a failed 3 s bound with lib.rs and outline.rs reverted;
with only the /First-/Last relink reverted, the chain stays listed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: ROSA John <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:50:26 +01:00
01eedd566c M5: All tools ▸ Add comments lists Attach file (#8172) (#8553)
The Add comments tool group did not list comment.attach, so the only
Attach file in All tools was Edit a PDF's, which attaches the file to
the document with no icon on any page. List the comment tool under
Add comments ▸ Markup, with the label and icon the quick toolbar
already uses.

The UI test opens Add comments, clicks the Attach file row, clicks the
page and answers the picker, and checks that a FileAttachment comment
sits at the clicked spot. It fails with the catalogue line removed.

Co-authored-by: KenM76 <KenM76>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:43:23 +01:00
1e1cc4615c fix(xfa): read unit-less template measurements as inches (#8397) (#8499)
XFA 3.3 §Measurements: a length with no unit is in inches, so h="1"
equals h="1in" and <font size="1"/> is a one-inch font. measure() read a
bare number as points. Template attributes now take inches; rich-text
CSS font-size keeps reading a bare number as points (measure_css).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:40:32 +01:00
Aleksander HelgakerandFredApps 255ea3724d fix(print): report dimensions of images inside forms (#7742) (#7748)
* fix(print): report dimensions of images inside forms

* fix(print): preserve low-PPI findings for shared and extreme image uses

* Keep print image measurements consistent across placements

* Measure direct image PPI after scaling by UserUnit

* Deduplicate direct image reports by placement origin

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 08:26:17 +01:00
jweaver3andFredApps e11f2870b8 fix(js): a repeating subform's _name resolves to the nearest match in XFA scripts (#8882) (#8883)
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:03:33 +01:00