On Fri, Oct 1, 2010 at 10:12 AM, smg <[email protected]> wrote: > Hi Mariano, > > I want to say thank you for fpdf port. > >> Pyfpdf should work well with accented characters (LATIN1, by PDF specs). >> In fact I use it in Argentina (spanish). > >> Of course, suggestions are wellcome, and any fix will be accepted :-) > > Pyfpdf add_font method is broken in 1.54b, and I made quick dirty > fix for my web2py application. Is it hard to port UTF-8 support to > pyfpdf?
No, indeed, it should be easier than in php, as Python has better unicode support! Here is how it is done in php (tfpdf and SFPDF, based on FPDF): http://www.fpdf.org/en/script/script92.php http://www.fpdf.org/en/script/script91.php There are other recipes (scripts) to add support for other custom font types and languages. If you are interested, any help is welcome, and if you want to send me your add_font patch, I'll be happy to review and include it If you can, please fill an issue in pyfpdf.googlecode.com for both Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com

