Skip to content

Commit a7d8b28

Browse files
Fix missing /P attribute in copied widget annotations
1 parent 8f3e680 commit a7d8b28

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

formfyxer/pdf_wrangling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ def copy_pdf_fields(
795795
_update_annotation_rect_from_anchor_transform(
796796
annot, destination_page, page_transform
797797
)
798+
for annot in copied_annots:
799+
annot["/P"] = destination_page.obj
798800
if append_fields and hasattr(destination_page, "Annots"):
799801
destination_page.Annots.extend(copied_annots)
800802
else:

0 commit comments

Comments
 (0)