title: Add CSS style into iTextSharp PDF Output
body: <p>I am trying to find out how i can use my Tables.css on the pdf output that my code makes. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>public FileResult Edit(SpiseKopunTable model)
      {
          bool b = repository.PutSpiseKopun(model);
          DateTime d = new DateTime(1980, 1, 1);
          DateTime.TryParse(model.Dato.ToString(), out d);
          int c = new int();
          int.TryParse(model.ID.ToString(), out c);
          int e = new int();
          int.TryParse(model.Antal_Kuponer.ToString(), out e);
  
          using (MemoryStream stream = new System.IO.MemoryStream())
          {   
              int Antal_Kuponer = e;
              string SpiseTable = String.Format("&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;GL:{0}&lt;/td&gt;&lt;/ tr &gt;&lt; tr &gt;&lt; td &gt; Service:{1}&lt;/ td &gt;&lt;/ tr &gt;&lt; tr &gt;&lt; td &gt; Dato:{2}&lt;/ td &gt;&lt;/ tr &gt;&lt; tr &gt;&lt; td &gt; Pris:{3}&lt;/ td &gt;&lt;/ tr &gt;&lt; tr &gt;&lt; td &gt; Kommentar:{4}&lt;/ td &gt;&lt;/ tr&gt;&lt;tr&gt;&lt;td&gt; ID:{5}&lt;/ td &gt;&lt;/ tr &gt;&lt;/ tbody &gt;&lt;/ table &gt;",
                              model.GL,
                              model.Service,
                              d.ToString("dd-MM-yyyy"),
                              model.Pris,
                              model.Kommentar,
                              c.ToString()
                              );
              StringReader sr = new StringReader(
                   new StringBuilder().Insert(0, SpiseTable, e).ToString()
  
              );
              Document pdfDoc = new Document(PageSize.A4, 40, 40, 20, 20);
              PdfWriter writer = PdfWriter.GetInstance(pdfDoc, stream);
              //Console.WriteLine(sr);
              pdfDoc.Open();
  
              XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, sr);
              pdfDoc.Close();
              return File(stream.ToArray(), "application/pdf", "Airgreenland-vouchers.pdf");
          }
      }
  </code></pre>
  
  <p>I have looked at the official examples from iTextSharp tables styling, but i can't make it work on my code. </p>
  
  <p>Regards 
  Erneeraq Fleischer </p>