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

后端 未结 7 808
粉色の甜心
粉色の甜心 2020-12-07 12:37

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

7条回答
  •  爱一瞬间的悲伤
    2020-12-07 13:06

    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.

提交回复
热议问题