We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a3f51 commit 425b191Copy full SHA for 425b191
docling_core/types/doc/page.py
@@ -649,6 +649,7 @@ def export_to_textlines(
649
add_location: bool = True,
650
add_fontkey: bool = False,
651
add_fontname: bool = True,
652
+ add_text_direction: bool = True,
653
) -> List[str]:
654
"""Export text cells as formatted text lines.
655
@@ -676,6 +677,9 @@ def export_to_textlines(
676
677
if add_fontname and isinstance(cell, PdfTextCell):
678
line += f"{cell.font_name:>10} "
679
680
+ if add_text_direction and isinstance(cell, PdfTextCell):
681
+ line += f"{cell.text_direction} "
682
+
683
line += f"{cell.text}"
684
lines.append(line)
685
0 commit comments