get printed page number of an element

darkwind2121

New Member
I'm working on a project that is involving converting PDF handbooks to html. I am trying to retain the value of a PDF when printed, while giving them a better ui on devices which aren't bound by the concept of pages. The issue that I am running into is that these handbooks have a Table of Contents with the page number of where each chapter/section begins. When viewing on a device, that list will just be in-page anchor links, but when printing I would like to get the page number of an element (such as which page the heading for Chapter 3 is on) and add it to the table of contents, especially after applying print styles like \[code\]page-break-after:avoid;\[/code\].As an example, I would like to know what it would take to accurately add page numbers to the following wikipedia article's table of contents when printed.http://en.wikipedia.org/wiki/Character_mask
 
Back
Top