Skip to content

Commit

Permalink
Update PyPDF2/pdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Apr 16, 2022
1 parent 1365a32 commit 64ea56f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PyPDF2/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def updatePageFormFieldValues(self, page, fields):
for j in range(0, len(page[PG.ANNOTS])):
writer_annot = page[PG.ANNOTS][j].getObject()
# retrieve parent field values, if present
writer_parent_annot = {} # fallback if it's not there
if PG.PARENT in writer_annot:
writer_parent_annot = writer_annot[PG.PARENT]
for field in fields:
Expand Down

0 comments on commit 64ea56f

Please sign in to comment.