From: Vincent Vanwaelscappel Date: Mon, 4 Aug 2025 14:50:18 +0000 (+0200) Subject: #7678 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4a0d3364fcb6b1d5a507e0d638681260a2d6a788;p=cubist_pdf.git #7678 @0.25 --- 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)