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 Breaking when used for Gurmukhi(punjabi) script #42

Open
anagha-choudhari19 opened this issue Aug 21, 2022 · 0 comments
Open

Text Breaking when used for Gurmukhi(punjabi) script #42

anagha-choudhari19 opened this issue Aug 21, 2022 · 0 comments

Comments

@anagha-choudhari19
Copy link

I want to extract text from PDF for Gurmukhi script which is punjabi laguage
but characters wrongly read while extracting the text from pdf

`pdf_path='/content/Punjab2_new.pdf'
doc = Document(pdf_path)

text_control=TextControl("physical",insert_bom=True)
for page in range(len(doc)):
out_res=doc[page].text((0,90,155,700),text_control)
print('\n_______________New_page_output_________________________\n')
print(out_res)`

here are my expected and actual result images
expected image is sample of my input :

expected_text

and with text function I am having false charecter recognition issue:

actual_output

PDF
download.pdf

It will be a great help if any parameters of pyxpdf solve the issue

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