From bc3f5bd83953be367232d43f9efc27c126121054 Mon Sep 17 00:00:00 2001 From: hl2311 Date: Tue, 25 Mar 2025 00:34:33 +0700 Subject: [PATCH] Signed-off-by: hl2311 fix: Refactor missing bbox attribute to PdfTextCell --- docling/models/page_preprocessing_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docling/models/page_preprocessing_model.py b/docling/models/page_preprocessing_model.py index 1523a5d3..d1b29e38 100644 --- a/docling/models/page_preprocessing_model.py +++ b/docling/models/page_preprocessing_model.py @@ -69,6 +69,7 @@ class PagePreprocessingModel(BasePageModel): c.to_bounding_box().r, c.to_bounding_box().b, ) + draw.rectangle([(x0, y0), (x1, y1)], outline="red") if show: image.show()