Skip to content

organize: split a combined field/widget so every copied page owns its widget - #2289

Open
midasmatterhorn wants to merge 1 commit into
storytold:mainfrom
midasmatterhorn:fix/issue-1810-split-field-widget
Open

midasmatterhorn wants to merge 1 commit into
storytold:mainfrom
midasmatterhorn:fix/issue-1810-split-field-widget

Conversation

@midasmatterhorn

Copy link
Copy Markdown
Contributor

A widget that doubles as its own field (/Subtype /Widget, no /Parent) was copied once and shared between both copies of a repeated page, so only the last page could identify it (its /P) and per-page annotation edits were impossible. Page import now splits such a widget into a parent field holding the field keys (name, value, flags) and a widget child holding the annotation keys (rectangle, appearance, page), registers the parent in /AcroForm /Fields, and gives every later copy of the page its own widget child in the parent's /Kids. The repeated-page independence test no longer exempts own-field widgets, and a new test requires distinct widgets, correct /P per page, and one shared parent/value after save and reopen.

Fixes #1810

@midasmatterhorn
midasmatterhorn force-pushed the fix/issue-1810-split-field-widget branch from a7b18d7 to 4f0493c Compare October 16, 2026 12:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

organize: repeated page imports share a combined field/widget with only one page association

1 participant