You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PPF-2056: Accept integer coordinates wherever numeric geometry is supported #2056
At the reviewed snapshot, assigning pdf.widgets["test"].x = 123 changed the live value, but reopening the PDF still returned the old coordinate (73.3365 in the review probe). The geometry hooks accepted actual floats while silently ignoring equivalent integer inputs.
Work
Correct the geometry hooks in PyPDFForm/lib/hooks.py so accepted integer coordinates are normalized and serialized like equivalent floats. Apply the change consistently to relevant coordinate and dimension properties, including supported per-option geometry.
Acceptance Criteria
Setting x = 123 changes the reopened field to 123; equivalent integer and float inputs agree. Invalid types fail without silently retaining the old geometry.
Basis and Dependencies
R10. Keep this focused on the documented numeric API; broader geometry validation belongs to E4-01.
The behavior above is evidence from the source review, not a new reproduction performed when filing this issue. Reconfirm the relevant baseline or document intervening changes before implementation. Follow the plan's completion and validation rules and the Developer Guide, including meaningful regression assertions for behavior changes.
changed the title [-]Accept integer coordinates wherever numeric geometry is supported[/-][+]PPF-2056: Accept integer coordinates wherever numeric geometry is supported[/+]on Oct 11, 2026
Activity
[-]Accept integer coordinates wherever numeric geometry is supported[/-][+]PPF-2056: Accept integer coordinates wherever numeric geometry is supported[/+]