mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-31 22:44:27 +00:00
removed base64 dependency in msword_backend
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
f197f908cb
commit
0e56549082
@ -1,4 +1,3 @@
|
|||||||
import base64
|
|
||||||
import logging
|
import logging
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@ -491,7 +490,6 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
|
|
||||||
def handle_pictures(self, element, docx_obj, drawing_blip, doc):
|
def handle_pictures(self, element, docx_obj, drawing_blip, doc):
|
||||||
def get_docx_image(element, drawing_blip):
|
def get_docx_image(element, drawing_blip):
|
||||||
base64_image_data = None
|
|
||||||
rId = drawing_blip[0].get(
|
rId = drawing_blip[0].get(
|
||||||
"{http://schemas.openxmlformats.org/officeDocument/2006/relationships}embed"
|
"{http://schemas.openxmlformats.org/officeDocument/2006/relationships}embed"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user