Commit Graph
6827 Commits
Author SHA1 Message Date
mtlcl410andClaude Opus 5.5 76ba431dee M12: the XFA subform minH comment cites p. 847 and names the form it follows Acrobat on
Comment only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 19:04:18 +08:00
mtlcl410andClaude Opus 5.5 7ba0ee5804 M12: XFA prototypes: resolve each element's reference once, cap SOM expressions at 1,024 bytes, and test expansion limits
A prototype shared by many elements was reached again from each of them and its own
reference read again every time, so a long reference (1 MB) on a prototype used by
60,000 fields cost tens of gigabytes of hashing while the written template stayed small.
Each element's reference is now resolved once. A SOM expression longer than 1,024 bytes
names nothing (the longest in 198 local Designer templates is 109 bytes).

Tests: a "billion laughs" template (ten levels, each prototype referencing the level below
ten times) fails as a whole within the output cap and the form is read as written; a long
Designer-style form resolves in full with no warning; the shared long reference; the SOM
length limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 19:04:11 +08:00
mtlcl410andClaude Opus 5.5 2b36cfebea M12: test a positioned XFA subform with a minH above its content and with h, and name the form
The minH-above-content case now has its own assertions, a fixed h with a minH below it is
checked, the doc comment names IRCC IMM 5257 and cites XFA 3.3 p. 847, and the row test cites
the subform page (p. 847) instead of the exclGroup one (p. 719).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 19:03:59 +08:00
mtlcl410andClaude Opus 5.5 ae73e95c7e M12: test where an XFA row group lands at a page break, and table rows at their minimum height
A growable lr-tb row group that fits stays, one taller than a page goes on over pages, an rl-tb
one splits as lr-tb does, and one with a height or a positioned one moves whole. A table of
empty multi-line cells with a minimum height fits as many rows on a page as that height allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 18:58:59 +08:00
mtlcl410andClaude Opus 5.5 b559caaf54 Merge upstream/main into fix/indexed-short-lookup
main added a second exhaustive match on RenderWarning (render_warning_text in
crates/automation/src/pages.rs); the merge lets this branch handle it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 18:57:55 +08:00
mtlcl410andClaude Opus 5.5 a20607da36 M3: full screen takes no page input until the current page is on screen
While a page's transition plays, or the page waits for its raster, the
page under the pointer isn't the one shown, yet its links, fields, text
and comments took clicks. Page input now waits until full screen shows
the current page; turning pages (a click, a key) is handled apart and
still works. A press made meanwhile gives nothing on the page an owner,
so its release once the page is in takes nothing either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 18:44:11 +08:00
mtlcl410andClaude Opus 5.5 4dbc4fac69 M8: the apply notification says where the removed text is still held (#2448)
After "Applied N redaction marks…", the same notification names the bookmark titles,
attachments, comments and other metadata streams that still hold the redacted text, and points
to Remove hidden information. New English templates; untranslated text shows in English. The
protect.apply-redactions parity note and evidence say what is reported and what is still left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 18:31:52 +08:00
mtlcl410andClaude Opus 5.5 d37bde8c3b M8: Apply redactions passes on where the removed text is still held; redact_apply returns it (#2448)
The document keeps the last apply's Report::still_holding as redaction_elsewhere (re-exported as
RedactionElsewhere), cleared by the next edit, undo or redo as edit_notices is. redact_apply
returns it as still_holding with the four counts, their total and unsearched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 18:31:52 +08:00
FredAppsandClaude Opus 5.5 25916985ca fix(ui): keep document_area under the complexity gate after merging main
Main's page-edge-shadow preference (#2088) added a fade-strength branch to
document_area, and this branch's image-menu work added others; together they
put it one over clippy's cognitive-complexity limit. page_scroll, its only
caller's scroll helper, now takes the fade flag and restores the spacing itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 11:26:22 +01:00
FredAppsandClaude Opus 5.5 29913dcfca Merge current main into #2155
Brings the branch up to date with main (47f42ba0), which moved 37 commits since
the merge base, including page-edge shadows (#2088), full rewrite after page
delete (#4279) and the licence-check stage (#2212). No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 11:23:43 +01:00
mtlcl410andClaude Opus 5.5 1fd2ff31bb M8: test that a form whose content can't be decoded clears the metadata (#2448)
The unread-form branch was tested for a form nested past the depth limit only; a form under a
mark whose filter can't be decoded is removed unread too, and now has an end-to-end test, seen
failing with that branch's flag removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 18:09:13 +08:00
mtlcl410andClaude Opus 5.5 81d629d1ff M8: applying redactions counts the bookmarks, attachments, comments and XMP that still hold the removed text (#2448)
Report::still_holding (Elsewhere) counts the places apply leaves as they are that still hold the
removed text: bookmark titles, attachment names, file names and descriptions, the text and authors
of the comments that remain, and XMP on objects other than the catalog and the pages. Nothing is
changed; Remove hidden information removes them. The text is matched as the metadata check
matches it (one Search type now serves both), with its own work limit. When the removed text
couldn't be searched for, every place holding any text counts and `unsearched` says so. The walks
read each outline item and name-tree node once, within caps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 17:51:37 +08:00
mtlcl410andClaude Opus 5.5 ca4ddcfb90 M8: a test for each way the metadata check fails closed; XMP is decoded strictly (#2448)
End-to-end tests for a removed run over 64 KiB, more than 20,000 terms, a run over 4,096
characters, and XMP that is corrupt, cut short, behind two filters, over 16 MiB or in another
encoding. Each was seen failing with its guard removed or loosened.

The corrupt and cut-short cases showed that the tolerant decoder returned the part of the packet
before the damage, which was then searched as if it were the whole packet. XMP is now decoded
strictly, and a packet behind more than one filter goes unread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 17:46:19 +08:00
RiceDee d90cf79a2a fix(ui): the line spacing list keeps its column in every language (#5634)
A longer "Auto" (Czech "Automaticky") pushed the list 46 pt past the Tools pane at its
narrowest. It is now cut short, with the whole word in the list's menu and tooltip. A test
checks the lists in every interface language the fonts can draw, and the narrow-pane test also
runs at the largest interface size.
2026-11-01 20:02:38 +11:00
mtlcl410andClaude Opus 5.5 c2251a4e16 M5: a pop-up /Rect too large for f32 reads as no pop-up; reversed corners are tested (#2137 review)
A file's huge number became infinite as f32 and reached the window's
place. Both readers (annot summaries and the render inspector) now take
such a rectangle as no pop-up, as one that isn't four numbers; opening it
gives it a new place. Reversed corners were already put in order; tests
now cover both, read from a file and saved through set_popup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 16:38:13 +08:00
Grzegorz MartensandClaude Opus 5.5 db4162d2ef test(create,optimize): the other way round, the same size and larger
The shapes in these tests all ran one way. The way round depends on the shapes: 1 × 100,000 to
100,000 × 1 asks for 10 GB if it goes across first, or 30 GB at three components, so that is held to
as well. A mask of its image's size comes through byte for byte, and a larger one scales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-01 09:31:58 +01:00
Grzegorz MartensandClaude Opus 5.5 33d7a51301 M2: a reference in /Decode, /W or a palette that leads back to itself ends
Colour spaces already had tests of this through their bases. `/Decode`, in the renderer and in image
export, `/W`, `/W2` and an Indexed space's table hadn't: each read now has such a reference in its
test, and ends.

These hold that the read ends, not what value it comes to. A reference to a reference in a number
array reads as the first number of that reference in the renderer (`/Decode [11 0 R 0]`, with 11
naming 6 and 6 holding 1, reads as 6). That is older than this branch, in `IndirectObject::read` for
an object stored on its own and `ObjectStream::get` for one in an object stream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-01 09:31:58 +01:00
Grzegorz MartensandClaude Opus 5.5 43202e10f9 M2.6: a page of many pictures stops at the export's allowance
The allowance's sharing was tested on a few images. This runs a whole page through the export: the
pictures past it are left out and counted, and the page is listed, which is what the warning goes
by. A few large pictures all come through. The README gives the numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-01 09:31:58 +01:00
RiceDee 9538640f56 fix(ui): a bookmark made in the page grid goes to the current page (#5636)
The grid moves the viewport without refreshing where the pages are on screen, so
bookmark_position now gives no position there.
2026-11-01 19:19:23 +11:00
RiceDeeandClaude Sonnet 5.5 560acae86e fix(ui): the sliver bookmark_position ignores is one physical pixel, not one point (#5636)
Page rectangles snap to whole physical pixels, so what counts as rounding scales with the display:
the view keeps last frame's pixels per point and the threshold is its inverse.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 19:00:15 +11:00
mtlcl410andClaude Opus 5.5 0e580f7672 M3: full screen tests for display times, bounded and hostile durations, unknown styles, reduced motion, Escape and every key
Review on #5316. No behaviour change: the presenter already cut transitions
when animations are off (by default following the system), bounded /D to
10 s and /Dur to a day, ignored non-finite or negative values, read an
unknown /S as Replace (ISO 32000-2 Table 164) and stopped with full screen.
These tests pin each of those down, and every key and click full screen
answers to. The Wipe test now counts the transition's frames from its first
painted strip, so frames spent waiting for the raster don't count toward it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 15:59:58 +08:00
RiceDeeandClaude Sonnet 5.5 1bb7da1372 test(ui): quick_bar_offset is pinned at the margin that just holds the bar, a point less, and 1000 pt (#5635)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 18:50:54 +11:00
Grzegorz MartensandClaude Opus 5.5 025050942c M12: each of the nine anchors turns, at each turn
Rotation was tested from the top left and the bottom right. The other seven share that code, but
nothing held them to it. What is asked for comes from the box's corners in the test, not from layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-01 08:46:27 +01:00
RiceDeeandClaude Sonnet 5.5 3896e6c30a fix(ui): the rail's page and zoom fields are wide enough for "6400%", and the sliver size is named (#5636)
At 36 pt the largest zoom was cut off at the right. The fields are 42 pt, set by RAIL_FIELD_SIZE
and pinned in the rail test. The one-pixel tolerance in bookmark_position is the constant SLIVER.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 18:46:01 +11:00
RiceDeeandClaude Sonnet 5.5 461200e74a fix(ui): bookmark_position keeps a sliver page when nothing else shows; the rail test checks the rail's real edges (#5636)
A page showing under a pixel at the window's top is ignored in favour of the next page, but still
chosen when no other page shows. The rail test no longer tolerates 2 pt of overflow: it compares the
page and zoom fields with the rail's own edges.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 18:37:23 +11:00
mtlcl410andClaude Opus 5.5 36db141cf4 M12: tests for flowed XFA table cells and nodes without a height
Six tests for the review of #5370: every kind of node without a height
is as tall as its content after the measurement moved into
content_height; a flowed cell grows past a small or zero height, keeps
its margins and maxH and is measured across spanned columns; fields,
exclusion groups and positioned or row subforms in a cell keep their
heights; empty, nested and repeating flowed cells and repeating rows;
a cell taller than the page, huge margins and deep nesting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 15:18:57 +08:00
mtlcl410andClaude Opus 5.5 83f2171200 M12: tests for nested, empty and repeating XFA subformSets
Nested sets in lr-tb and positioned subforms, an empty set (and one
holding only an empty one) in lr-tb, positioned and tb subforms, a
repeating member of a set, and a repeating set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 15:04:16 +08:00
RiceDeeandClaude Sonnet 5.5 cab29b4f19 fix(ui): the rail is 49 pt wide with larger zoom buttons, and two position checks allow a pixel of rounding (#5636)
The rail is a point wider, and its side padding is 1 pt, so the zoom out and in buttons are half
the rail's inner width each (about 22 pt) and leave a pixel to the rail's edge.

The wider rail moves the page by a pixel, which exposed two checks that depended on exact pixels:
bookmark_position counted a page showing under a pixel at the window's top as the one the reader
is at, so a bookmark made after a jump went to the previous page; and the sidebar scroll test
compared positions to under a pixel, though page rectangles snap to whole pixels.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 17:56:58 +11:00
mtlcl410andClaude Opus 5.5 8bb04751c5 M12: XFAImages: every name-and-value pair counts against the walk, and over-long names are left
A Names array repeating one name kept the walk going, since only new names
counted. Pairs are now counted, repeats included, up to 16,384, and a name
over 4,096 bytes is left before it is turned into text. The node limit no
longer skips the names of the node the walk has just reached.

Tests for a repeated name, an over-long name, the 4,096th node, a linked
stream that isn't a picture, and an over-large picture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 14:36:04 +08:00
RiceDeeandClaude Sonnet 5.5 8f1d23d991 test(ui): the Format text narrow-pane test checks the font list against the pane's content edge (#5634)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 17:15:43 +11:00
RiceDeeandClaude Sonnet 5.5 db0383b97c fix(ui): the quick bar centres by its rendered width, and a NaN margin keeps 14 pt (#5635)
Fill & Sign's Text and Date tools widen the bar, so the fit check and the centring now use last
frame's width of the bar. A NaN margin used to count as 100 pt through `f32::min`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 17:12:07 +11:00
RiceDeeandClaude Sonnet 5.5 889472f16f fix(ui): the rail's page box fits, and the zoom field looks like a field (#5636)
The page box lost its right edge to the rail. The page and zoom fields now share one helper
that boxes them and sizes them to the rail, with the same 12 pt font. Zoom out and zoom in are
small buttons side by side under the zoom field. The rail's side padding is 4 pt, not 6.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 16:49:25 +11:00
RiceDeeandClaude Sonnet 5.5 6365e2ed47 fix(ui): centre the quick-tools bar in the margin beside the page (#5635)
The bar stood a fixed 14 pt from the side panel, so its gap to the page changed with zoom and
window size. It now centres in the margin between the panel and the page when the margin holds
it, within the first 100 pt; otherwise it keeps 14 pt in.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 16:42:02 +11:00
RiceDeeandClaude Sonnet 5.5 6734f9f3b4 fix(ui): Format text fields read as fields, line up, and fit the Tools pane (#5634)
The font, line spacing, paragraph spacing, scale and character spacing fields get an outline
and fill, with one box round each number and its arrow. Line and paragraph spacing text is
centred, and the two-column rows end at the font list's right edge.

The Tools pane has equal 14 pt margins and a minimum width worked out from its widest Format
text row, so the alignment button is no longer cut off. The Edit and tool-detail rows stop
short of the floating scrollbar, through a helper shared with All tools (#5133).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 16:33:17 +11:00
mtlcl410andClaude Opus 5.5 99bfb79994 M12: an exclusion group's member names are reserved too (#5225 review)
collect_names recorded an exclusion group's name but not its members'.
The members are drawn as fields with their own names (draw_field), so a
repeated field drawn before the group could take a member's name as its
made-up one (a repeated Cell4 took Cell4_2, and the member Cell4_2 became
Cell4_2_2); the result depended on draw order. The members' names are now
reserved as well, so a member keeps the name the template gives it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 13:13:55 +08:00
mtlcl410andClaude Opus 5.5 1defb91dbe M12: test that a form without repeated fields keeps every template name (#5225 review)
A form whose fields don't repeat keeps each template name as it is, one
that looks made up (Total_2) included: reserving the template's names must
not push a field off its own. Seen to fail with the template's names
reserved for every field (Name_2, Total_3, Total_2_2, Date_2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 12:21:39 +08:00
Dylan M. Taylor 47f42ba07b ci: grant packages write permission to release workflow 2026-10-31 23:43:03 -04:00
mtlcl410andClaude Opus 5.5 b115a8a098 M5: test that closing a pop-up saves its typed text (#2137 review)
Text typed into a pop-up's box and not yet saved is saved when the window's
x is clicked: the click takes the focus from the box and closes the window
in one frame, as one undo step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 10:33:48 +08:00
mtlcl410andClaude Opus 5.5 f508fdf053 M5: pop-up rectangles read alike, edits in one frame kept, pop-up drafts follow their comment (#2137 review)
- The render path reads a pop-up as none unless its /Rect is four numbers,
  as pdfcraft_annot::summaries does; set_popup gives a comment's own pop-up
  without one the place a new pop-up gets, so opening it shows it again.
- The composer's edit and a pop-up's, landing in one frame, are queued
  together in one batch instead of the pop-up's replacing the composer's.
- A pop-up's unsaved text, reply draft, drag and resize follow their comment
  when a deletion moves it, are dropped on undo/redo, and are dropped after
  any other edit that leaves their (page, index) naming another comment
  (pages moved, inserted or deleted).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 10:22:55 +08:00
Grzegorz MartensandClaude Opus 5.5 2afbf55cd2 M12: an XFA draw placed by position turns about its anchor
Nothing read rotate, so a turned line, picture or label was drawn as if it
stood upright: part of #5561. XFA gives the angle in degrees counter-clockwise
about the anchor, and Acrobat's flattened page for that issue's form puts the
three turned lines exactly there, which the test holds it to.

A turned draw is one item: a page break moves it whole, and what it holds is
written unturned under one matrix, so text, pictures and borders need nothing
of their own. The page count and link annotations look inside it, and its
container grows to the box it stands in. Fields, subforms and draws in a flow
don't turn yet.

That issue's own form is static, so it already shows Acrobat's page: this is
for dynamic forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-01 02:59:32 +01:00
Grzegorz MartensandClaude Opus 5.5 640e7acb15 fix(create,optimize): a mask of other proportions doesn't take the process down
Scaling goes down first, through a buffer of the source's width by the target's
height at 16 bytes a pixel, and neither image's size limit bounds that product.
A soft mask of 60,000 × 1 on an image of 1 × 60,000, about a kilobyte of PDF,
asked for 57 GB and aborted the process, in image export, Office export, Copy
Image and Optimize at its default settings. The same shapes in smaller sizes
held gigabytes.

Such a picture is scaled across first, which holds no more pixels than one of
the two has, so the size limits bound it after all. Proportions that aren't
far apart scale as they did, to the byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-01 02:28:29 +01:00
mtlcl410andClaude Opus 5.5 b1c2c4cafe M5: comment pop-up windows laid out as reply threads, fixed in size, scrolling and resizable (comment.popups)
The pop-up window now reads as the common readers' do:

- a one-line title bar with the comment's kind and author, its date and x,
  in the comment's colour; the body in a lighter tint, with fixed ink so it
  reads in either app theme;
- the comment's text, and each reply's, in a box typed in place;
- the replies as panels in thread order, each inside the panel of the reply
  it answers (/IRT), nesting at most eight deep;
- a Reply button under the comment and each reply, opening a box that
  answers that comment or reply (Enter starts a new line; Post or
  Ctrl/Cmd+Enter posts; Cancel closes it).

The window keeps the size of its pop-up's /Rect in points on screen as the
page zooms, instead of growing with the zoom; the text and replies scroll
inside it, with a scroll bar shown whenever there is more. Dragging its
lower right corner resizes it; the new size is saved as the pop-up's /Rect,
the window's upper left corner kept in place on screen (on a page turned a
quarter too), in one undo step. A /Rect with non-finite numbers gives the
least size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 09:16:30 +08:00
mtlcl410andClaude Opus 5.5 1b9930e612 M5: a comment's connector is a faint wedge to its pop-up (comment.connector-lines)
The connector from a comment to its open pop-up window was a one-pixel line.
It is now a faint wedge in the comment's colour: a point on the comment's
edge nearest the window, widening to a base on the window's side that faces
the comment, as the common readers draw it. Shown, as before, while the
pointer is on the comment or the window, or the comment is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 002b7bf4ff M5: opening, closing or moving a pop-up keeps the page's raster (#2137)
Review on #2137 (nitpick): a SetAnnotationPopup edit marked its page
stale, so its tiles were rendered again, its text cache dropped and its
selection cleared, though nothing in the raster changes: the window is
drawn over the page and a /Popup annotation paints nothing. Edits that
also change the comment (a batch) still invalidate as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 6aea7318f3 M5: comment.connector-lines cites a test that reads the painted line (#2137)
Review on #2137: the cited test opened, moved and closed a pop-up but
never looked at the connector line. The new test reads the frame's
shapes: a line in the comment's colour from the comment's edge to the
window's, nearest points at each end, shown with the pointer on the
comment or the window or with the comment selected, and not otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 65eb3257c5 M5: a pop-up is its comment's when /Annots lists the comment through a reference to it (#2137)
Review on #2137: when /Annots holds 5 0 R and object 5 is only a
reference to the comment 6 0 R, the pop-up's /Parent names 6 0 R, but
the ownership check compared it with 5 0 R. The comment's pop-up was
then missing from both the on-open listing (render inspect) and the
summaries after an edit (annot). Both now compare the references they
resolve to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 45f5a3c591 M5: a pop-up reads its thread by /IRT reference, as the Comments panel does (#2137)
Rebased onto main's reference-based threading (#4061, #4566). The pop-up
matched replies by /NM (in_reply_to == name), which need not be unique:
two notes sharing PyMuPDF's fitz-A0 both showed one note's replies, and a
reply to a reply was missing. It now files replies under a comment with
thread_tops over the settled parent links, as comments_panel does, and
has_popup asks Annotation::is_comment rather than in_reply_to (a reply
whose parent has no /NM read as a comment of its own).

Regression test a_pop_up_lists_its_replies_by_reference_when_names_repeat,
seen to fail with the /NM filter restored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 34871b61a5 M5: Catalan, Finnish and Romanian for the pop-up undo labels (#2137)
These catalogues were added on main after this branch began. AI-assisted,
marked as not reviewed by a native speaker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 479390cd50 M4: a pop-up lists a comment's text replies, not its status or checkmark replies (#2137)
The pop-up's reply list kept every annotation in reply to the comment,
so a review status (/StateModel /Review) and the private checkmark reply
Mark writes (/StateModel /Marked) showed as replies with their generated
text. It now lists replies without a /State, as the Comments panel does
(comments_panel.rs).

Raised by CodeRabbit on #2137.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3niW7kVeT8mi7TpWc8eAJ
2026-11-01 09:16:03 +08:00
mtlcl410andClaude Opus 5.5 a7fd7f27ae M4: a pop-up counts as a comment's only when it is a pop-up of that comment (#2137)
Review on #2137. set_popup accepted a pop-up whose /Parent was present but
not a reference, and the comment list (pdfcraft_annot::summaries and the
inspector) reported whatever /Popup named: another annotation's rectangle
and open state. One check, own_popup, now decides for both: /Subtype
/Popup, and /Parent absent or a reference to the comment (ISO 32000-2:2020
12.5.6.14, Table 186: "Optional; shall be an indirect reference").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gv2WwdgjmBz33GWkwgNn3Q
2026-11-01 09:16:03 +08:00