Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text can't be extracted from scanned PDF, jpg and png. #445

Open
Takip31 opened this issue Nov 3, 2022 · 0 comments
Open

Text can't be extracted from scanned PDF, jpg and png. #445

Takip31 opened this issue Nov 3, 2022 · 0 comments

Comments

@Takip31
Copy link

Takip31 commented Nov 3, 2022

Describe the bug
The .txt file only shows arrows without any text presence.

To Reproduce
Steps to reproduce the behavior:
Use this code:

import glob
import textract

file=glob.glob(r'path/to/retrieve/file.extension')
for file_path in file:
text=textract.process(file_path)
with open(f'{file_path[:-4]}.txt', 'w') as file:
file.write(text)

Expected behavior
The text from file should be showing up.

Screenshots

Capture

Desktop (please complete the following information):

  • OS: Windows 10
  • Textract version 1.6.5
  • Python version 3.10
  • Virtual environment No

Additional context
Add any other context about the problem here.

@Takip31 Takip31 changed the title Text can't be extracted from scanned PDF Text can't be extracted from scanned PDF, jpg and png. Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant