title: Adding headers with iTextSharp in VB.NET
body: <p>I'm wondering how can I put a header into my PDF file, cause I've tried the tutorials from here:</p>
  
  <p><a href="http://itextsharp.sourceforge.net/tutorial/ch04.html" rel="nofollow noreferrer">http://itextsharp.sourceforge.net/tutorial/ch04.html</a></p>
  
  <p>And it has not worked.</p>
  
  <p>I've done this:</p>
  
  <pre><code>Dim head As New HeaderFooter(New Phrase("This is page: "), False)
  head.Border = Rectangle.NO_BORDER
  document.Header = head
  </code></pre>
  
  <p>But VS2008 says that <code>HeaderFooter</code> is not defined (line 1), and <code>Footer it's not a member of "iTextSharp.text.document" (line 3).</code></p>
  
  <p>I've already included the imports at the beginning of my code and iIdon't have any other problems with the iTextsharps (I mean that it is working apart of the header problem):</p>
  
  <pre><code>Imports iTextSharp.text
  Imports iTextSharp.text.pdf
  Imports System.Data.SQLite
  Imports System.IO
  </code></pre>
  
  <p>So please, can anyone explain to me how can i set a header for my pages?</p>
  
  <p>Regards</p>