gmanny / Pechkin

.NET Wrapper for WkHtmlToPdf static DLL. Allows you to utilize full power of the library.
400 stars 128 forks source link

Does not reflect rgb color when xhtml file is passed #32

Open chinmaymk opened 11 years ago

chinmaymk commented 11 years ago

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