I have html & css used to build my iText flying-saucer page set up like the following...
<html>
<head>
<style type="text/css">
body { padding: 5px; }
.footer {
position: running(footer);
font-size: 11px;
text-align: center;
}
@page {
@bottom-center {
content: element(footer)
}
}
.pagenumber:before {
content: counter(page)
}
.pagecount:before {
content: counter(pages)
}
</style>
</head>
<body>
<div class="content">
lots of content that spans multiple pages in here...
</div>
<div class="footer">
Page <span class="pagenumber"></span> of <span class="pagecount"></span>
</div>
</body>
</html>
Why is the footer only displaying on the last page?