How to detect if content of an HTML page will spill over into second A4 page when printed?
I am building a "print to PDF" function for some of the pages in a web app. I cannot rely on browser's functionality for this. I have managed to show the content in a A4-size div (similar to how google docs does it). However, I am unable to determine...