Skip to content

Commit

Permalink
docs: fixed typo in v2 example v2 (#378)
Browse files Browse the repository at this point in the history
Update v2.md - fixed typo in example: iterate_items -> iterate_items()

Signed-off-by: Gaspard Petit <[email protected]>
  • Loading branch information
gaspardpetit authored Nov 19, 2024
1 parent ed785ea commit 911c3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ conv_result: ConversionResult = doc_converter.convert("https://arxiv.org/pdf/240
conv_result.document.print_element_tree()

## Iterate the elements in reading order, including hierachy level:
for item, level in conv_result.document.iterate_items:
for item, level in conv_result.document.iterate_items():
if isinstance(item, TextItem):
print(item.text)
elif isinstance(item, TableItem):
Expand Down

0 comments on commit 911c3bd

Please sign in to comment.