It was my first try with pyfpdf library, (great job of Mariano Reingart, thank you so much).
In my first tests generating a PDF from html, the H1 tag displayed in red color. As far as I could see in pyfpdf there was no way to change the default style for H1. Then I resorted to the <font color...> tag, but using it, I had the following error: <type 'exceptions.NameError'> global name 'color' is not defined File "applications/FyEPrototipo/modules/fpdf/html.py", line 220, in handle_starttag self.set_text_color(*color) NameError: global name 'color' is not defined Digging into html.py code, I found that error justified. Actually, that line should be: self.set_text_color(*self.color) (line 220 in html.py) and the next one, should be supressed: * self.color = color (line 221 in html.py)* I had a hard time trying to figure out how to get changes in a module recognized by web2py because I needed to learn some lessons about code caching in web2py, a great idea, by the way. Best regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.