title: ITextSharp Defining a Pages Background Image: Whats the correct way?
body: <p><strong>Is it possible to set a background image for a pdf page in ITextSharp?</strong></p>
  
  <p>Whats the correct way to define a background image for a pdf page? Is there a property of the document I set?</p>
  
  <p>Or is it just like creating another image(my image has the dimensions of a A4 page)? <em>If I add the background image as a normal image will I be able to place paragraphs over the top of the background image?</em></p>
  
  <pre><code>var document = new Document(PageSize.A4, 50, 50, 25, 25);
  // Create a new PdfWrite object, writing the output to a MemoryStream
  var output = new MemoryStream();
  var writer = PdfWriter.GetInstance(document, output);
  var logo = iTextSharp.text.Image.GetInstance(Server.MapPath("~/Images/test.jpg"));
  logo.SetAbsolutePosition(0,0);
  document.Add(logo);
  
  // Will the following paragraph be ON TOP or below the background image? 
  // I am aiming for on top
  document.Add( new Paragraph("sjfkkjdsfk") ); 
  document.Close();
  </code></pre>