aws-samples / aws-samples/amazon-textract-textractor

Issue with Markdown output (textractprettyprinter)

Open
#274 1 comment 0 reactions 1 assignee Assigned to @anjanvb View on GitHub
Dominant language
Jupyter Notebook
Stars
493
Forks
163
PR merge metrics
No merged PRs in 30d

Description

There's an issue when I get the text in Markdown format. For some reason, all the lists duplicate the text. First as "plaintext" and then with the proper Markdown format.

Here's how I'm generating my Markdown file:
```
input_document='s3://.../MY_FILE.pdf'

textract_json = call_textract(
input_document=input_document, features=[Textract_Features.LAYOUT, Textract_Features.TABLES]
)
layout = get_text_from_layout_json(
textract_json=textract_json,
generate_markdown=True,
exclude_page_header=True,
exclude_page_footer=True,
save_txt_path="./output"
)
```

Example:
Screenshot 2023-11-13 at 16 12 39

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.