From 190b4dc890c65d8814e0fe19afa62083414b11a6 Mon Sep 17 00:00:00 2001 From: neversphere Date: Sun, 23 Apr 2023 01:54:19 -0700 Subject: [PATCH] DOC: Use append instead of add_page Update docs to use append rather than add_page so that the PDF structure is copied. This ensures the form structure is kept which is necessary for some PDFs. See #1790 Closes #1792 Closes #1804 --- docs/user/forms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/forms.md b/docs/user/forms.md index 4a61657aa..ff729d059 100644 --- a/docs/user/forms.md +++ b/docs/user/forms.md @@ -21,7 +21,7 @@ writer = PdfWriter() page = reader.pages[0] fields = reader.get_fields() -writer.add_page(page) +writer.append(reader) writer.update_page_form_field_values( writer.pages[0], {"fieldname": "some filled in text"}