Skip to content

Commit 183622e

Browse files
authored
DOC: Correct example of reading FileAttachment annotation (#2906)
1 parent dd39992 commit 183622e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/user/reading-pdf-annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ for page in reader.pages:
9292
for annotation in page["/Annots"]:
9393
subtype = annot.get_object()["/Subtype"]
9494
if subtype == "/FileAttachment":
95-
fileobj = annotobj["/FS"]
95+
fileobj = annot.get_object()["/FS"]
9696
attachments[fileobj["/F"]] = fileobj["/EF"]["/F"].get_data()
9797
```

0 commit comments

Comments
 (0)