How to do page numbering in header/footer htmls with wkhtmltopdf?

Actually it’s much simpler than with the code snippet. You can add the following argument on the command line: --footer-center [page]/[topage].

Like richard mentioned, further variables are in the Footers and Headers section of the documentation.

Leave a Comment