Skip to content

Commit

Permalink
Close PDF objects when done
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Mar 15, 2023
1 parent 4ad2004 commit 98a715b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docassemble/ALWeaver/interview_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ def add_fields_from_file(self, document: Union[DAFile, DAFileList]) -> None:
):
for pike_info in pike_obj.Root.AcroForm.Fields:
pike_fields[str(pike_info.T)] = pike_info
pike_obj.close()
for pdf_field_tuple, pike_info in zip_longest(all_fields, pike_fields):
pdf_field_name = pdf_field_tuple[0]
if pdf_field_name in pike_fields:
Expand Down

0 comments on commit 98a715b

Please sign in to comment.