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
[Bug]: Ticking the second box of a Yes/No check box pair saves the field as /V /Off #22183
Open yes-no-pair.pdf in the online demo. It has one check box field, Answer, with two widgets: a "Yes" box on the left (ticked) and a "No" box on the right.
Click the "No" box. "Yes" clears and "No" is ticked.
Download the file.
Look at the end of the downloaded file, e.g. tail -c 600 yes-no-pair.pdf.
The "No" widget is saved with /AS /No, but the field's /V is /Off. Reopened in PDF.js, the "No" box still shows as ticked, because it reads /AS. Anything that reads the field's value (form data export, other PDF tools) sees no answer. Nothing looks wrong on screen, so there is no useful screenshot; the problem is only in the saved file.
Link to a viewer
No response
Additional context
_saveCheckbox calls setValue for the unticked widget too (_saveRadioButton only does so when the button is on). setValue writes the parent field's /V only for the first widget saved for that field. So whichever box is saved first decides the value, and when that is the unticked one, the field is saved as /Off.
Activity
docs: the vendored worker's patch names its upstream report, mozilla/…
docs: the vendored worker's patch names its upstream report, mozilla/…