Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Access field label as an **inheritable** dictionary value.
Addresses #3950.
  • Loading branch information
JorjMcKie committed Oct 16, 2024
1 parent ad9c2e1 commit dccb979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15697,7 +15697,7 @@ def SETATTR_DROP(mod, key, value):
field_name = mupdf.pdf_load_field_name(annot_obj)
SETATTR_DROP(Widget, "field_name", field_name)

obj = mupdf.pdf_dict_get(annot_obj, PDF_NAME('TU'))
obj = mupdf.pdf_dict_get_inheritable(annot_obj, PDF_NAME('TU'))
if obj.m_internal:
label = mupdf.pdf_to_text_string(obj)
SETATTR_DROP(Widget, "field_label", label)
Expand Down

0 comments on commit dccb979

Please sign in to comment.