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 at what point should I render another A4-sized div and move additional page content into the new div.
Has anyone done something similar? Is there an existing JS library that helps with this?
No responses yet.