Problems with the write_html function when changing the color of heading elements #880
-
|
Hello! I'm having problems with the write_html function. Whenever I try to plot a heading element, it comes out red, and I can't change its color. Is it a problem with my code or with the lib? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @liviaalvzs! Thank you for getting in touch. You are right, this currently a limitation of I just merged a PR that adds support for this: #886 While waiting for a new |
Beta Was this translation helpful? Give feedback.
Hi @liviaalvzs!
Thank you for getting in touch.
You are right, this currently a limitation of
fpdf2HTML renderer.The headings color is hardcoded & set there:
https://github.com/py-pdf/fpdf2/blob/2.7.5/fpdf/html.py#L386
I just merged a PR that adds support for this: #886
While waiting for a new
fpdf2release including this feature,you can already test it by installing
fpdf2fromgit: