Forum Bugs

problem with colors

fvquicke
Dear,

when trying to generate a pdf of a html page, the colors are not taken into account in the pdf.

The colors are defined as a style in the span element. E.g.,
<span style="font-family:charissil"><span style="color:#FFFFFF">text in color</span></span>

How can this be resolved?

If needed, I can share a link to the html page.

BR,
Frederic.
mikeday
That should work. Can you share a link? It can also help to simplify the document, that can make the issue more obvious.
dauwhe
I just did a simple test with that HTML, and it worked as expected. See attached files.

Thanks,

Dave
  1. color.html0.3 kB
  2. color.pdf14.7 kB
mikeday
It turned out there was a print-specific style sheet overriding the color. Prince assumes media "print" by default, but you can specify "screen" instead if the print style sheets are unsuitable.