How to set a checkbox to true? #2004
Unanswered
ColeBlender
asked this question in
Q&A
Replies: 2 comments 4 replies
-
a) can you confirm you are on the latest version from pypdf |
Beta Was this translation helpful? Give feedback.
1 reply
-
from the test suite:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Once I get the appropriate key I can do this just fine with text boxes:
writer.update_page_form_field_values(writer.pages[i], {key: "Jeff Willams"})
How do I do it with checkboxes? I've tried all of following with no success:
writer.update_page_form_field_values(writer.pages[i], {key: True}) writer.update_page_form_field_values(writer.pages[i], {key: "True"}) writer.update_page_form_field_values(writer.pages[i], {key: "true"}) writer.update_page_form_field_values(writer.pages[i], {key: "On"}) writer.update_page_form_field_values(writer.pages[i], {key: "/On"}) writer.update_page_form_field_values(writer.pages[i], {key: "Yes"}) writer.update_page_form_field_values(writer.pages[i], {key: "/Yes"})
Is there a different method for this? Am I using the wrong value? Is this even possible using this library?
Beta Was this translation helpful? Give feedback.
All reactions