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:
Benichou 2025-04-08 11:33:52 -04:00
parent eb7980af0b
commit 6cf9fd1008

View File

@ -53,6 +53,10 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
"r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
},
)
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:
if isinstance(self.path_or_stream, BytesIO):
self.pptx_obj = Presentation(self.path_or_stream)