From a7d8b2841f6f340ae851b47263fe1905caa35eee Mon Sep 17 00:00:00 2001 From: Quinten Steenhuis Date: Tue, 9 Jun 2026 12:20:53 -0400 Subject: [PATCH] Fix missing /P attribute in copied widget annotations --- formfyxer/pdf_wrangling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/formfyxer/pdf_wrangling.py b/formfyxer/pdf_wrangling.py index 0592e0e..e83292a 100644 --- a/formfyxer/pdf_wrangling.py +++ b/formfyxer/pdf_wrangling.py @@ -795,6 +795,8 @@ def copy_pdf_fields( _update_annotation_rect_from_anchor_transform( annot, destination_page, page_transform ) + for annot in copied_annots: + annot["/P"] = destination_page.obj if append_fields and hasattr(destination_page, "Annots"): destination_page.Annots.extend(copied_annots) else: