diff --git a/docling/backend/mspowerpoint_backend.py b/docling/backend/mspowerpoint_backend.py index e569d2c2..3523f556 100644 --- a/docling/backend/mspowerpoint_backend.py +++ b/docling/backend/mspowerpoint_backend.py @@ -393,7 +393,7 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB if shape.shape_type == MSO_SHAPE_TYPE.PICTURE: # Handle Pictures if hasattr(shape, "image"): # make sure the Picture shape has an image attribute - image_part = shape.image + image_part = shape.image # get the image part if image_part.ext not in ["emf", "wmf"]: # all extensions except emf and wmf that lead to bug in adding picture to doc self.handle_pictures(shape, parent_slide, slide_ind, doc, slide_size) # If shape doesn't have any text, move on to the next shape