kmikzjh / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

The tag FONT has problems when configuring the color attribute #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. fpdf.write_html('<font color="#ff00ff">que onda</font>')

What is the expected output? What do you see instead?
The text with color in the font

What version of the product are you using? On what operating system?
1.7.1, MACOSX

Please provide any additional information below.
The line 291 in the file fpdf/html.py has reference to a global variable named 
color, but it should be self.color

Code with the problem:
                self.set_text_color(*color)
                self.color = color

Code corrected:
                self.set_text_color(*self.color)
                self.color = self.color

Original issue reported on code.google.com by jaimeh.g...@gmail.com on 11 Feb 2013 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by vadm...@gmail.com on 18 Mar 2015 at 5:20