Fix test failures due to 4dde378

This commit is contained in:
James R. Barlow
2024-07-09 15:54:53 -07:00
parent 51c618e357
commit 980a5472b6
+1 -1
View File
@@ -573,7 +573,7 @@ def _find_form_xobject_images(pdf: Pdf, container: Object, contentsinfo: Content
xobjs = resources[Name.XObject].as_dict()
for xobj in xobjs:
candidate = xobjs[xobj]
if candidate is None or candidate.get(Name.Type) != Name.Form:
if candidate is None or candidate.get(Name.Subtype) != Name.Form:
continue
form_xobject = candidate