How add page numbers to invoices?

In invoices that have multiple pages how I can add page number in the pdf invoice? (Footer or Header).

Thanks