In google docs, when we paste lot of data it automatically splits it into pages which are printer friendly, How can I build this basic google docs type functionality. The source of data will be fetched from database instead of paste.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could gradually fill a div with text using JavaScript. Check the height after each word and after reaching a certain height (e.g. ~25cm for DIN A 4) insert a new paragraph tag with
page-break-before: alwaysto break the page in the print.