I'm using modified by my team PHP tool for converting HTML to PDF. My task is to add number of pages in bottom corner. I never know how many pages I'll have, I don't know after which part I may get a page break.
I can't use Javascript.
I was thinking about using CSS counter, but I have no idea if it's good way, how can I check if page had a break...