Skip to content

Instantly share code, notes, and snippets.

@MarcosBL
Last active May 16, 2017 14:07
Show Gist options
  • Save MarcosBL/5cf55d7733e011ec4d23fbbfb4c14fa5 to your computer and use it in GitHub Desktop.
Save MarcosBL/5cf55d7733e011ec4d23fbbfb4c14fa5 to your computer and use it in GitHub Desktop.
DomPDF page footers
<html>
<head>
<style>
p { page-break-after: always; }
.footer { position: fixed; bottom: 0px; }
.pagenum:before { content: counter(page); }
</style>
</head>
<body>
<div class="footer">Page: <span class="pagenum"></span></div>
<p>lorem ipsum ...</p>
<p>lorem ipsum ...</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment