I created an IText5 document in Java:
Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, pageOut);
document.open();
I am interating through a list of cars and for each of them I create a newPage.
For each newPage
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: http://itextpdf.com/examples/iia.php?id=103 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.