Save a pdf with form fields disabled. #2323
Answered
by
JorjMcKie
adilsitos
asked this question in
Looking for help
-
I am using pymupdf to fill a pdf with form fields (widget), and it helped me a lot! But when I save the pdf it is still possible to change these form fields, is there a way to save this PDF with the widgets disabled? |
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Apr 11, 2023
Replies: 1 comment 7 replies
-
You mean that any later open of the PDF won't allow to change the PDF (and thus the fields)? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The correct name is
Widget.field_flags
("s" at the end). If you want to set a bit, please remember to use Python's "|" operator, do not usewidget.field_flags = ...
, because this will have all sorts of side effects, among them changing the field type!