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
ComboBox choice_values full of empty strings despite PDF having valid choices. #4114
It seems that in this form, the dropdown on the first page has no /Opt key, only the one on the second page. Yet, in all PDF viewers, the options are shown in both dropdowns as expected. What other key is being used to link to these choices?
Activity
sarahkittyy commentedon Dec 4, 2024
It seems that in this form, the dropdown on the first page has no /Opt key, only the one on the second page. Yet, in all PDF viewers, the options are shown in both dropdowns as expected. What other key is being used to link to these choices?
sarahkittyy commentedon Dec 4, 2024
These forms both have a
/Parent 86xref that links toAnd
/Opt 90links to the correct list of options:So somewhere in pymupdf you need to account for the fact that the
/Optkey might live in the/Parentobject.sarahkittyy commentedon Dec 4, 2024
Also,
widget.field_value = widget.choice_values[foo]doesn't even work. (Leaves the field in the output PDF completely blank)src/__init__.py tests/:JM_choice_options(): fix #4114.
src/__init__.py tests/:JM_choice_options(): fix #4114.
julian-smith-artifex-com commentedon Jun 29, 2026
Fixed in pymupdf-1.28.0.