Forum: Ruby on Rails German letter ä, ö, ü in rfpdf

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
143cca9f26d2421816f3758638b74647?d=identicon&s=25 Adam Meyer (outsida)
on 2009-01-27 21:53
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
59528506e6297141161afcde91d677c9?d=identicon&s=25 Nicolai Reuschling (codeblogger)
on 2009-01-27 21:58
(Received via mailing list)
Hi Adam,

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

Regards
Nicolai
C42c706fab23da0b6d3cd2cfbb8db27d?d=identicon&s=25 Salil Gaikwad (salil)
on 2009-04-15 08:59
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
143cca9f26d2421816f3758638b74647?d=identicon&s=25 Adam Meyer (outsida)
on 2009-04-15 11:25
Salil Gaikwad 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
C42c706fab23da0b6d3cd2cfbb8db27d?d=identicon&s=25 Salil Gaikwad (salil)
on 2009-04-15 12:01
> 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
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-04-15 12:07
(Received via mailing list)
You might wanna change "Vorhunden" to "vorhanden" to make it German.
C42c706fab23da0b6d3cd2cfbb8db27d?d=identicon&s=25 Salil Gaikwad (salil)
on 2009-04-15 12:43
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
This topic is locked and can not be replied to.