mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-09 13:18:24 +00:00
Add code to expose text direction of cell
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
@@ -26,6 +26,17 @@ def _get_backend(pdf_doc):
|
||||
return doc_backend
|
||||
|
||||
|
||||
def test_cell_ordering():
|
||||
pdf_doc = Path("tests/data/pdf/right_to_left_01.pdf")
|
||||
doc_backend = _get_backend(pdf_doc)
|
||||
|
||||
for page_index in range(0, doc_backend.page_count()):
|
||||
page_backend: DoclingParseV2PageBackend = doc_backend.load_page(page_index)
|
||||
cells = list(page_backend.get_text_cells())
|
||||
|
||||
1 == 1
|
||||
|
||||
|
||||
def test_text_cell_counts():
|
||||
pdf_doc = Path("./tests/data/pdf/redp5110_sampled.pdf")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user