I have downloaded a text file which is in Hindi. I want to convert it into pdf. For that I'm using prawn gem. But, the gem is not converting hindi characters at all. It is just converting english characters.
Asked
Active
Viewed 1,304 times
0
-
This could be an issue with fonts - see my answer to http://stackoverflow.com/questions/19032092/prawn-russian-fonts – Neil Slater Feb 06 '15 at 12:36
-
I found the solution later. But, how do I read a file and write every line in a pdf when I do something like File.read("abc.txt").each do |row| text row end ;; it is showing garbage in pdf – leonidus Feb 06 '15 at 12:47
-
I think you need to put the code, the input file, and the example "garbage" in your question. Also, do you know encoding of text file? – Neil Slater Feb 06 '15 at 13:08