German letter ä, ö, ü in rfpdf


#1

Hi,

I need PDF creation in Rails and decided for RFPDF.
Everything works quite nice the only problem is that I can’t display
ä,ö,ü in the pdf documents.

I found a tutorial that says that I have to create a font config file
with MakeFont.

I did it, but now I don’t now where to put al this files.

Does anyone has experience with creating PDFs in Rails with ä,ü,ö
letters?

Thx

Adam


#2

Hi Adam,

have a look at Prawn (http://prawn.majesticseacreature.com/) and Prawnto
(
http://www.cracklabs.com/prawnto).
Works great for me…

Regards
Nicolai


#3

Hi all,
anyone found any solution for German letter ä, ö, ü in rf pdf
i’m facing same problem and i must have tto use PDF::Writer on linux.

Regards,

Salil


#4

Salil G. wrote:

Hi all,
anyone found any solution for German letter ä, ö, ü in rf pdf
i’m facing same problem and i must have tto use PDF::Writer on linux.

Regards,

Salil

Hi Salil,

I made use of the prawn plugin mentioned above. It is very easy and
powerful.

Cheers


#5

Hi Salil,

I made use of the prawn plugin mentioned above. It is very easy and
powerful.

Cheers

Hi Adam,
Thanx.
I try following code and it works fine for me.I test it only on linux
though.

enc = Iconv.new(‘Windows-1252’, ‘UTF-8’)

pdf.select_font(“Helvetica”)

@data=enc.iconv(“Persönlicher LS Vorhunden”)

table.data = [
{“name” => @data, “race” => " "}
]

then it display “Persönlicher LS Vorhunden” correctly.

Regards,

Salil


#6

MaD wrote:

You might wanna change “Vorhunden” to “vorhanden” to make it German.

thanx. but I check it with google language tools and it translate
correctly.
neways that’s not an issue i just wanna print special characters like ä,
ö, ü in rfpdfand fortunatelly for me it works.

Regards,

Salil


#7

You might wanna change “Vorhunden” to “vorhanden” to make it German.