Print page number on sales invoice

I have a multiple copies in Sales Invoice like “Original for Buyer”,“Duplicate for Transporter” and “Triplicate for Supplier”.For these i want to print page number like if “Original for Buyer” has 2 pages it has to display like 1-2,2-2 and if “Duplicate for Transporter” has 3 pages it has to display like 1-3,2-3,3-3. How to do this.

I am using this code

{{ _("Page {0} of {1}").format('', '') }}

Hi maybe this thread can assist you

@JayRam Kindly share the code if you can. Here’s another thread of same type of use case