this is really difficult to answer w/o seeing RELEVANT code and knowing more details about your actual strategy for page numbering.

Off the top of my head , however, I would guess that you could find the rule for your page break, do an @media print ( media query) with a counter, and finally output the value of the counter in a :before pseudo element. Something ROUGHLY like this:

Thanks for your response, I'm trying to learn. In my research and from forums, the solution is from 3 lines of code to nearly 100, javascript to pdf, no result to a page of errors. Following is your offering followed by code: I'm not surethe placement.