How to find how many pages a printed web page will be?
Posted on 2012-09-21
When I Print / Print Preview a web page, the browser has the ability to put page x of y on the printed document. Is there a way to query the browser to find out how many pages a printed page would be if it was printed?
I have a displayed web page that when it prints, normally prints to one page. However, depending on the amount of information entered by the user, it could print to 2 or more pages. In that case I want to add conditional page breaks (using page-break-before) to break up the information in the desired format.