We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a79b3c commit cfae3a6Copy full SHA for cfae3a6
docs/user/forms.md
@@ -27,10 +27,17 @@ fields = reader.get_fields()
27
writer.append(reader)
28
29
writer.update_page_form_field_values(
30
- writer.pages[0], {"fieldname": "some filled in text"}
+ writer.pages[0],
31
+ {"fieldname": "some filled in text"},
32
+ auto_regenerate=False,
33
)
34
35
# write "output" to pypdf-output.pdf
36
with open("filled-out.pdf", "wb") as output_stream:
37
writer.write(output_stream)
38
```
39
+
40
+Generally speaking, you will always want to use `auto_regenerate=False`. The
41
+parameter is `True` by default for legacy compatibility, but this flags the PDF
42
+Viewer to recompute the field's rendering, and may trigger a "save changes"
43
+dialog for users who open the generated PDF.
0 commit comments