I am looking to display a scrollable print preview of HTML content on a single page.
Please carefully review the following information and offer suggestions for a solution.
When given dynamic raw data that can be extensive, is it possible to utilize custom CSS or Javascript to create a standardized print preview within the web page? The desired print preview should include margins on all sides and resemble separate page boxes holding the content.
For instance, if the raw data consists of 200 lines, the print preview should display 50 lines per page. As the user scrolls through the preview, each subsequent page will show lines 51-100, then 101-150, and so forth. The overall dimensions of the printed pages, including margin space, height, and width, should remain consistent to mimic a paper-like appearance rather than a standard web page layout.
Thank you in advance, Chandra