I am in the process of generating a dynamic pdf file, which contains data of around 10,000 users, in general the app is developed using MySQL and PHP. The dynamic content is
You possibly want to use some css, eg:
h1 {page-break-before:always}