I'm trying to convert HTML + inline SVG elements to PDF using this library, Somehow background colors don't seem to work. When I add them as Hex values everything looks great. But when added as RGB it doesn't work.
This is the config I'm using
oc.SetPrintBackground(true)
.SetPageUri("temp.xhtml")
.SetScreenMediaType(true)
.SetRunJavascript(false)
.SetLoadImages(true)
.SetFallbackEncoding(Encoding.Default)
.SetIntelligentShrinking(false)
.SetAllowLocalContent(true)
.SetCreateExternalLinks(true);
Works
.bg
{
background :#DBDBDB;
}
Does not work
.bg
{
background :rgb(110,100,100);
}
I'm trying to convert HTML + inline SVG elements to PDF using this library, Somehow background colors don't seem to work. When I add them as Hex values everything looks great. But when added as RGB it doesn't work.
This is the config I'm using oc.SetPrintBackground(true) .SetPageUri("temp.xhtml") .SetScreenMediaType(true) .SetRunJavascript(false) .SetLoadImages(true) .SetFallbackEncoding(Encoding.Default) .SetIntelligentShrinking(false) .SetAllowLocalContent(true) .SetCreateExternalLinks(true);
Works .bg { background :#DBDBDB; }
Does not work .bg { background :rgb(110,100,100); }