5 Commits
Author SHA1 Message Date
Calixte Denizet ef01d55c96 Let link annotations own their text
A tagged Link and its annotation otherwise expose duplicate link semantics.

For a Link with one annotation and text-only content, let the annotation own the text spans. Keep the structure-tree fallback until that succeeds.
2026-08-17 16:23:09 +02:00
Calixte Denizet 100a5420c8 Use the structure tree to position annotations
Serialized OBJR children used raw object references that do not match annotation-layer element IDs. Type correction also required a structure element to have exactly one child, so links with marked content were missed.

Match OBJR children to annotations by object reference. Keep structured annotations owned by the structure tree, and use text-layer positioning only for annotations absent from it.
2026-08-13 19:16:15 +02:00
Calixte Denizet 16d12b6a46 Expose PDF alternative text without prohibited ARIA names 2026-08-11 18:48:10 +02:00
Calixte Denizet 61608c0664 Expose more tagged PDF structure roles
It fixes #21732.
2026-08-07 19:22:28 +02:00
calixteman 240bfeec81 Expose the table structure attributes in the struct tree
Preserve `RowSpan`, `ColSpan`, `Headers`, `Scope`, `Short` and `Summary`
when serializing the structure tree, and map them to the corresponding
ARIA attributes in the viewer.

The attributes are now collected from both the `A` and the `C` entries,
which may be arrays interleaving dictionaries and revision numbers: this
also fixes the bounding box and the MS Office MathML lookups, which only
handled a single direct dictionary.

Fixes #18090.
2026-08-04 21:22:13 +02:00