Suppose I have Invoice A , which has 3 pages and Invoice B has 2 pages
I need to display it as Page 1 of 3, page 2 of 3 and page 3 of 3 for invoice A
and page 1 of 2 and page 2 of 2 for invoice B
I read a couple of blogs and they said use element.reset() but I didnt get it..