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

Hindi characters appear incorrectly even after adding 'Arial Unicode MS' font when converting from HTML to PDF #259

Open
GoogleCodeExporter opened this issue Sep 6, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. Take any HTML which has hindi characters in it. I am attaching an input html 
file.
2. Convert this HTML to PDF using the regular method by also providing font 
using renderer.getFontResolver().addFont() method. I checked it for 'Arial 
Unicode MS' and also using other hindi fonts such as Samyak Devanagari and 
Sarai but the result is same . The fonts are embedded correctly in the PDF 
which I have verified, hindi content is also visible but the words are not 
correct.

What is the expected output? What do you see instead?
I am attaching files for the expected output and the actual output which should 
make things more clear.The expected output pdf has been generated using HTML 
from a tool called pdfcrowd which is doing it correctly.


What version of the product are you using? On what operating system?
product version : Release 8 (R8)
OS : Ubuntu 14.04

Please provide any additional information below.

Thank you for this. It is a wonderful tool but I am really stuck on this part. 
I have tried almost all solutions available on the net and filing an issue here 
as the last resort. The problem is that the fonts do get embedded in the PDF 
that is generated but the content is not displayed correctly. If I copy the 
content generated in the PDF and paste it on browser , everything is displayed 
correctly.

Original issue reported on code.google.com by varun.p....@gmail.com on 2 Apr 2015 at 7:14

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant