title: iTextSharp add image
body: <p>I have create an Invoice PDF in my class successfully. 
  I have added an image in header, but the problem is it's only working on the production machine. When I publish to live server the image breaks and when I remove the image it works again.</p>
  
  <p>I have used this code same to add image in a pdfpcell:
  note www.mysite.co.za is just an example.</p>
  
  <pre><code>string logoUrl = "http://www.mysite.co.za/iCharter/images/Atlantic_logo.PNG";
  
  iTextSharp.text.Image jpg = iTextSharp.text.Image.GetInstance(logoUrl);
  
  PdfPCell cell1 =  new PdfPCell(new iTextSharp.text.Phrase(".",h0));
  cell1.Colspan = 2;
  cell1.Border = 0;
  tblInfo.AddCell(cell1);
  
  cell1 = new PdfPCell(jpg);
  cell1.Colspan = 2;
  cell1.Border = 0;
  cell1.HorizontalAlignment = Element.ALIGN_RIGHT;
  tblInfo.AddCell(cell1);
  </code></pre>