From: "Simon Kröger" Date: 2007-02-17T03:00:05+09:00 Subject: Re: PDF::Writer and Unicode Vincent Fourmond wrote: > Welcome to the nightmare world of fonts and encodings... ... and PDF generation in Ruby. If this helps, you can see myself struggle with the same problem here: http://groups.google.de/group/comp.lang.ruby/browse_thread/thread/54336c6a932903fe/f0bb48520dac2ba5 I ended up using libharu (http://libharu.sourceforge.net/) It is cross platform, FAST and has ruby bindings (it is a little bit clumsy to use and the ruby bindings are missing some functions but it is the best i could find) example: ----------------------------------------------------------------------- require "hpdf" pdf = HPDFDoc.new font = pdf.get_font("Helvetica", "CP1254") page = pdf.add_page page.set_size(HPDFDoc::HPDF_PAGE_SIZE_A4, HPDFDoc::HPDF_PAGE_PORTRAIT) page.set_font_and_size(font, 96) page.begin_text page.move_text_pos(100, 700) page.show_text("\x80") page.end_text pdf.save_to_file "c:/temp/test.pdf" ----------------------------------------------------------------------- With a little love to the wrapper this could be really good... cheers Simon