mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
fix/implementing the capture of pptx_image with the same method from docx backend by extracting the drawing blip
Signed-off-by: Benichou <fbenichou@deloitte.ca>
This commit is contained in:
parent
d8873aa0c9
commit
45eb3e79f7
@ -46,6 +46,10 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
|
|||||||
|
|
||||||
self.pptx_obj = None
|
self.pptx_obj = None
|
||||||
self.valid = False
|
self.valid = False
|
||||||
|
self.xpath_expr = etree.XPath(".//a:blip", namespaces={
|
||||||
|
"a": "http://schemas.openxmlformats.org/drawingml/2006/main",
|
||||||
|
"r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
||||||
|
})
|
||||||
try:
|
try:
|
||||||
if isinstance(self.path_or_stream, BytesIO):
|
if isinstance(self.path_or_stream, BytesIO):
|
||||||
self.pptx_obj = Presentation(self.path_or_stream)
|
self.pptx_obj = Presentation(self.path_or_stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user