title: How can I add an image to all pages of my PDF?
body: <p>I have been trying to add an image to all pages using itextsharp. The image needs to be OVER all content of every page. I have used the following code below all the other<code>doc.add()</code></p>
  
  <pre><code>Document doc = new Document(iTextSharp.text.PageSize.A4, 10, 10, 30, 1);
  PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(Server.MapPath("~/pdf/" + fname), FileMode.Create));
  doc.Open();
  Image image = Image.GetInstance(Server.MapPath("~/images/draft.png"));
  image.SetAbsolutePosition(12, 300);
  writer.DirectContent.AddImage(image, false);
  doc.Close();
  </code></pre>
  
  <p>The above code only inserts an image in the last page. Is there any way to insert the image in the same way in all pages?</p>