Is there a way to calculate how many A4 papers would fit into a div on my website? I am aware that the size of an A4 paper in pixels varies depending on the screen's DPI. I am exploring methods to determine the user's screen DPI, convert it to A4 page dimensions in pixels, and then divide my div's height by this value to estimate the number of pages using JavaScript or jQuery. Is this a viable approach, or are there other alternatives available? Furthermore, how can I identify a screen's DPI and convert it to pixels?