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

Issue with UTF-8 Hindi charaters #112

Open
abhi0476 opened this issue Aug 7, 2017 · 4 comments
Open

Issue with UTF-8 Hindi charaters #112

abhi0476 opened this issue Aug 7, 2017 · 4 comments

Comments

@abhi0476
Copy link

abhi0476 commented Aug 7, 2017

input.txt
I used Arial Unicode MS as font
I am getting the characters in PDF but its somewhat distorted.
I am attaching input html, expected PDF File and actual PDF generated by script.
Please help
actualoutput.pdf
expectedoutput.pdf

@danfickle
Copy link
Owner

Sorry @abhi0476
My understanding is that Hindi needs advanced text shaping support such as different character forms for different positions and horizontal and/or vertical displacement from character to character. Currently this is not possible using PDF-BOX which we use as the PDF output library. See PDF-BOX 3550. I believe recent iText versions with FlyingSaucer may support it (try it out first), but is expensive for many use cases.

Sorry, I couldn't be of more assistance.

@UmeshRajani
Copy link

UmeshRajani commented Aug 11, 2017

Hi @abhi0476

I have html page which contains hindi and Cyrillic alphabets, I was trying same since many days with different java library but didn't success. itextpdf is there but that is not for free.

Can you please help me, how did you get the hindi script in pdf output, I'm trying it but it generates undefined symbols like '##########################'

Here it seems you are quite successful here for converting doc in hindi to pdf

@harbulot
Copy link
Contributor

Just in case, you might want to check that the font you're using supports the characters you're trying to render (similar to #129 or #53).

@PulkitGupta707
Copy link

PulkitGupta707 commented Jun 12, 2022

Any updates on this? I am also facing same glyph issue with Hindi or any other Indian languages @danfickle

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

5 participants