From 4a0d3364fcb6b1d5a507e0d638681260a2d6a788 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 4 Aug 2025 16:50:18 +0200 Subject: [PATCH] #7678 @0.25 --- resources/tools/docling/convert_page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/tools/docling/convert_page.py b/resources/tools/docling/convert_page.py index b269f10..eac38fc 100644 --- a/resources/tools/docling/convert_page.py +++ b/resources/tools/docling/convert_page.py @@ -27,7 +27,7 @@ Path(sys.argv[2] + "document.md").write_text(allpages) i = 0 for md in allpages.split(""): i += 1 - while not converter.convert(sys.argv[1]).pages[i - 1].parsed_page.has_chars: + while not result.pages[i - 1].parsed_page.has_chars: Path(sys.argv[2] + "p" + str(i) + ".md").write_text("") i += 1 Path(sys.argv[2] + "p" + str(i) + ".md").write_text(md) -- 2.39.5