mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +00:00
correct rebase error
Signed-off-by: Manuel030 <manuelenrique.plank@gmail.com>
This commit is contained in:
parent
34ef233c42
commit
cf2f3a1ceb
@ -507,10 +507,10 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
|
|
||||||
image_data = get_docx_image(element, drawing_blip)
|
image_data = get_docx_image(element, drawing_blip)
|
||||||
image_bytes = BytesIO(image_data)
|
image_bytes = BytesIO(image_data)
|
||||||
|
level = self.get_level()
|
||||||
# Open the BytesIO object with PIL to create an Image
|
# Open the BytesIO object with PIL to create an Image
|
||||||
try:
|
try:
|
||||||
pil_image = Image.open(image_bytes)
|
pil_image = Image.open(image_bytes)
|
||||||
level = self.get_level()
|
|
||||||
doc.add_picture(
|
doc.add_picture(
|
||||||
parent=self.parents[level - 1],
|
parent=self.parents[level - 1],
|
||||||
image=ImageRef.from_pil(image=pil_image, dpi=72),
|
image=ImageRef.from_pil(image=pil_image, dpi=72),
|
||||||
|
Loading…
Reference in New Issue
Block a user