title: Image not showing up in itextsharp generated html to pdf document when Height/Width are added in style
body: <p>I am working on dynamic HTML to PDF document and using ckeditor to write HTML and then itextsharp 5.5.10 to generate downloadable PDF from it. Below is the code I am using </p>
  
  <pre><code>string htmlText = "some basic HTML I wrote in ckeditor 4.0 and save in my DB to retrieve later"
  
  
  StringReader sr = new StringReader(htmlText);
  Document pdfDoc = new Document(PageSize.A4, 0, 0, 0, 18f);
  PdfWriter writer = PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
  
  
  // instantiate the custom PdfPageEventHelper
  MyPageEventHandler e = new MyPageEventHandler()
       {
      ImageHeader = imageHeader
  };
  writer.PageEvent = e;
  
  pdfDoc.Open();
  XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, sr);
  pdfDoc.Close();
  
  // Auto Download option
  Response.ContentType = "application/pdf";
  Response.AddHeader("content-disposition", "attachment;filename=Proposal-" + pid + ".pdf");
  Response.Cache.SetCacheability(HttpCacheability.NoCache);
  Response.Write(pdfDoc);
  Response.End();
  </code></pre>
  
  <p>Now everything is working fine, thanks to this great library itextsharp however sometimes its not adding few images to PDF file. </p>
  
  <p>During debugging I found that variable <code>htmlText</code> has same input HTML that I saved using ekeditor and it contains all <code>img</code> tags too but still some images are not showing up in PDF.</p>
  
  <p>Below are few tags in my HTML</p>
  
  <pre><code>&lt;img alt="" src="http://www.mydomain/fullpath/13101571jjc-banner.png" /&gt;
  &lt;img alt="" src="http://www.mydomain/fullpath/0c1bc6fbchart-1.png" style="width:400px" /&gt;
  &lt;img alt="" src="http://www.mydomain/fullpath/f7802520graph1.png" style="height:288px; width:643px" /&gt;
  &lt;img alt="" src="http://www.mydomain/fullpath/4cd70c03sample_s-l_DISTRIBUTION.jpg" style="height:756px; width:1056px" /&gt;
  </code></pre>
  
  <p>and <strong>4th image is not showing up</strong> in my PDF.**</p>
  
  <p>I understand that it may have something to do with <code>Height</code> and <code>Width</code> attribute on <code>img</code> tag but I am not able to solve it.</p>
  
  <p>Note : image show up properly when I remove either <code>Height</code> or <code>Width</code> or both attributes from <code>img</code> tag. But actual user using my code won't do that every time they add a new image in HTML so I am looking for a proper solution here.</p>
  
  <p>Thank you in advance for any suggestion and solution. </p>