views:

207

answers:

1

Hello everybody, 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 so heavy that, I found it difficult to process with fpdf() class. So I converted my output php page as a html file using ob_get_clean(). Now the html file is generated successfully and also the pdf file. But i want to leave a page break after each user's data, that is every user's data must start in a fresh page. I couldn use any HTML tags because, in the dynamically generated HTML file, everything is out of the and tags. Please help me so that some how i make a page break in the pdf file after every user's data... Thanks in advance :)

+1  A: 

You possibly want to use some css, eg:

h1 {page-break-before:always}
graphicdivine