title: export html text to PDF (with inline styles). backgound-color does not work
body: <p>I am developing an application to export html data to pdf file (in c#). I followed these steps to convert the data</p>
  
  <pre><code>StyleSheet styles = new StyleSheet();
  tempText = tempText.Replace("\"", "&amp;#34;");
  ArrayList objects = HTMLWorker.ParseToList(new StringReader(tempText), styles);
         for (int k = 0; k &lt; objects.Count; k++)
         {
                  document.Add((iTextSharp.text.IElement)objects[k]);
         }
  </code></pre>
  
  <p>lets suppose if my text is something like</p>
  
  <pre><code>&lt;h3 style="color:blue;"&gt;
         Write a Java 
         &lt;span style="font-size:16px;"&gt;
             &lt;span style="background-color:yellow;"&gt;
                  program that prints two separate text
             &lt;/span&gt; 
         &lt;/span&gt;
         strings on the same line.
  
  ![ exported data in pdf is shown in the image below ][1]&lt;/h3&gt;
  </code></pre>
  
  <p>The problem is that the conversion failed for the inner span tag. It does not parse <code>background-color</code> from style. How can I do this? I don't want to use any third party tool. </p>