Inventory Template

Inventory Template

I built a   custom   template   for invoices ,   but   I do not know   how to   insert the   page number and how to   divide the items   of the bill   on multiple   pages   when I export   to pdf .
This is possible ?