I\'m developing an electronic invoicing system, and one of our features is generating PDFs of the invoices, and mailing them. We have multiple templates for invoices, and wi
Actually it's much simpler than with the code snippet. You can add the following argument on the command line: --footer-center [page]/[topage].
--footer-center [page]/[topage]
Like richard mentioned, further variables are in the Footers and Headers section of the documentation.