Page numbers for domPDF?

I am struggling to get page numbers to work with domPDF generated reports.

Within footer.pdf I am generating paging info: , {{{page}}}/{{{num_pages}}}

'num_pages' will show the correct total, but 'page' will always be '1'.

Any ideas?

Thanks

Bruce

Comments

  • Ah....I just answered my own question:

    css: .page-number:before {  content: counter(page);} and then stick <span class='page-number'></span> in the footer.

Sign In or Register to comment.