Link to home
Start Free TrialLog in
Avatar of apjraven
apjraven

asked on

How to find how many pages a printed web page will be?

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.

Thanks!
Avatar of doublestick
doublestick
Flag of United States of America image

Click on FILE > PRINT PREVIEW.  At the bottom, it will show how many pages.
ASKER CERTIFIED SOLUTION
Avatar of Graham N.
Graham N.
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial