Skip to content

Commit

Permalink
DOC: Correct example of reading FileAttachment annotation (#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-1 authored Oct 17, 2024
1 parent dd39992 commit 183622e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/reading-pdf-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ for page in reader.pages:
for annotation in page["/Annots"]:
subtype = annot.get_object()["/Subtype"]
if subtype == "/FileAttachment":
fileobj = annotobj["/FS"]
fileobj = annot.get_object()["/FS"]
attachments[fileobj["/F"]] = fileobj["/EF"]["/F"].get_data()
```

0 comments on commit 183622e

Please sign in to comment.