Skip to content

Commit

Permalink
Update textract2page/convert_aws.py
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Sachunsky <[email protected]>
  • Loading branch information
rue-a and bertsky authored Apr 15, 2024
1 parent fd2e5fb commit c23a8ed
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions textract2page/convert_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,14 +808,6 @@ def convert_file(
)
pagexml_page.add_ImageRegion(pagexml_img_region)

if preserve_reading_order:
global_ordered_group.add_RegionRefIndexed(
RegionRefIndexedType(
index=global_reading_order_index,
regionRef=f"layout-text-region-{layout.id}",
)
)
global_reading_order_index += 1
continue
if layout.textract_layout_type == "LAYOUT_TABLE":
# we cover tables separatly
Expand Down

0 comments on commit c23a8ed

Please sign in to comment.