iTextsharp HTML/CSS to pdf conversion. border-radius property not working

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

iTextsharp HTML/CSS to pdf conversion. border-radius property not working

Sarfaraj

I have a requirement where I need to draw a circle with CSS. (Since the color of a circle is dynamic, so cannot use an image). Here is the code I am trying to get circle please help me if any workaround is there.

<div style="height: 10px;width: 10px;background-color: #bbb;border-radius: 50%;"></div>
c# code:

using (var htmlMemoryStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(html)))
                {
                    using (var cssMemoryStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(cssText)))
                    {
                        var a = XMLWorkerHelper.ParseToElementList(html, cssText);
                        XMLWorkerHelper.GetInstance().ParseXHtml(writer, document, htmlMemoryStream, cssMemoryStream, Encoding.UTF8, FontFactory.FontImp, path);
                    }
                }
Reply | Threaded
Open this post in threaded view
|

Technical Help

anisazula
Most Internet users are very conscious of the risks of spyware, adware and malicious software and can have taken precautions against such attacks by installing suitable antivirus software. However another threat exists mentioned as rogue antivirus, which is actually a fake antivirus. you'll find an enquirer for free of charge of charge of charge antivirus download for PC and free antivirus software download useful.  Garmin.com/Express | Rand McNally GPS Update | Garmin Update | Rand McNally Update | Garmin.com/mapupdates
Reply | Threaded
Open this post in threaded view
|

technical support

rosezula
In reply to this post by Sarfaraj
Norton Antivirus could also be a very documented antivirus application for the Windows system and much of users global trust within the security provided by this product. This program performs important functions within the pc , like protecting it from virus, spyware, Trojans and far of other infections. Though it's highly effective, it's still susceptible to causing errors and computer malfunctions because of the complicated process of uninstalling it.   Norton.com/nu16 | Norton.com/setup | aol mail  | AOL Gold Download | AOL Mail | AOL Mail Login​ | belkin router setup | Belkin Login
Reply | Threaded
Open this post in threaded view
|

Canon.com/ijsetup

jollyzula
In reply to this post by Sarfaraj
Canon offers an honest range of HD camcorders and with over 50 years experience within the imaging industry you'll not find it hard to unearth the right canon HD camcorder for you. When choosing a canon HD camcorder you would like to think about where you're presumably to be using the camcorder. Knowing exactly where the canon HD camcorder are becoming to be used will mean you'll confirm the camcorder has the proper settings to fit your needs.  Canon.com/ijsetup | Ij.start.cannon | Canon.com/ijsetup | Ij.Start.Canon