title: IText5 - different footer on every page
body: <p>I created an IText5 document in Java:</p>
  
  <pre><code>  Document document = new Document();
    PdfWriter writer = PdfWriter.getInstance(document, pageOut);
    document.open();
  </code></pre>
  
  <p>I am interating through a list of cars and for each of them I create a newPage.
  For each <code>newPage</code> I want car name in footer. 
  I can't find examples for it, I only found how to have the same footer on every page.
  I found this example based on events: <a href="http://itextpdf.com/examples/iia.php?id=103" rel="nofollow">http://itextpdf.com/examples/iia.php?id=103</a> but it doesnt seem to be a good solution as I am iterating through cars list and in this approach I cant print car name in footer.</p>