Skip to content

Commit

Permalink
reformatted the code
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM committed Jan 31, 2025
1 parent f886b1d commit 7f387fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docling_parse/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,15 @@ def visualise_py(
draw_cells_bbox=(not display_text), draw_cells_text=display_text
).show()

lines = pdf_page.original.export_to_textlines(add_fontkey=True, add_fontname=False)
lines = pdf_page.original.export_to_textlines(
add_fontkey=True, add_fontname=False
)
print(f"text-lines (original, page_no: {page_no}):")
print("\n".join(lines))

lines = pdf_page.sanitized.export_to_textlines(add_fontkey=True, add_fontname=False)
lines = pdf_page.sanitized.export_to_textlines(
add_fontkey=True, add_fontname=False
)
print(f"text-lines (sanitized, page_no: {page_no}):")
print("\n".join(lines))

Expand Down

0 comments on commit 7f387fc

Please sign in to comment.