Update Widget text #4410
Replies: 3 comments
-
This is not an issue. Transferring to "Discussions" tab. |
Beta Was this translation helpful? Give feedback.
-
Alright, any help would be appreciated here, guys. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Field names are mandatory. They also must be unique in the PDF. Uniqueness understood as / applied to the concatenation of field hierarchy levels (e.g. like "customer-number.adress.street"). |
Beta Was this translation helpful? Give feedback.
-
Description of the bug
Hi, I'm trying to process PDFs to translate them. Now, working with widgets, I am facing the issue of not being able to update the text correctly. I get that I can use the button_caption field to update text, but I need the original text as well to translate it. However, when I see the original button caption, it's None.
This is a sample dict representation of the widget:
The field_name is what I see on the PDF, i.e., TOC in this case, this is true for all the widgets on the PDF. My question is, is that the norm? Can I generalize this for all PDFs to get the button text, and get the field name minus the page number? Or is there more to it? Appreciate any guidance that can help cover all bases.
How to reproduce the bug
You can try this pdf: superstar-messaging.pdf
Code:
PyMuPDF version
1.25.4
Operating system
Linux
Python version
3.10
Beta Was this translation helpful? Give feedback.
All reactions