Pechkin icon indicating copy to clipboard operation
Pechkin copied to clipboard

Does not reflect rgb color when xhtml file is passed

Open chinmaymk opened this issue 12 years ago • 0 comments

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); }

chinmaymk avatar Mar 20 '13 12:03 chinmaymk