mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
Merge 5e12d0795a
into bfcab3d677
This commit is contained in:
commit
3f841e540a
@ -392,9 +392,10 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
|
||||
self.handle_tables(shape, parent_slide, slide_ind, doc, slide_size)
|
||||
if shape.shape_type == MSO_SHAPE_TYPE.PICTURE:
|
||||
# Handle Pictures
|
||||
self.handle_pictures(
|
||||
shape, parent_slide, slide_ind, doc, slide_size
|
||||
)
|
||||
if hasattr(shape, "image"): # make sure the Picture shape has an image attribute
|
||||
image_part = shape.image # get the image part
|
||||
if image_part.ext not in ["emf", "wmf"]: # all extensions except emf and wmf
|
||||
self.handle_pictures(shape, parent_slide, slide_ind, doc, slide_size)
|
||||
# If shape doesn't have any text, move on to the next shape
|
||||
if not hasattr(shape, "text"):
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user