Skip to content

Commit

Permalink
DOC: Typo in example in extract-attachments.md (#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
ageitgey committed Nov 14, 2023
1 parent 9a2d983 commit 8d51903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/extract-attachments.md
Expand Up @@ -11,7 +11,7 @@ from pypdf import PdfReader

reader = PdfReader("example.pdf")

for name, content_list in reader.attachments:
for name, content_list in reader.attachments.items():
for i, content in enumerate(content_list):
with open(f"{name}-{i}", "wb") as fp:
fp.write(content)
Expand Down

0 comments on commit 8d51903

Please sign in to comment.