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

后端 未结 7 814
粉色の甜心
粉色の甜心 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:20

    From the wkhtmltopdf documentation (http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf-0.9.9-doc.html) under the heading "Footers and Headers" there is a code snippet to achieve page numbering:

    
    
    Page of

    There are also more available variables which can be substituted other than page numbers for use in Headers/Footers.

提交回复
热议问题