Fpdf -how to force page break?

A quick question for those familiar with fpdf :slight_smile:

[font=Verdana][color=#000000]I’m making a simple pdf mainly constructed by tutorial 1 & 2, but I don’t know how to force a page break. I’m pulling the info from a database and each stack of info needs a page of it’s own and I don’t know how much space the info will take up each time, so I can’t just make an empty cell that will take up the rest of the space so the automatic page break kicks in :slight_smile:

I’ve looked at SetAutoPageBreak, but it seems to only be used for determing when the automatic page break sets in.

How can I force a page break?[/color][/font]

Once you call Output(), doesn’t that cease page generation? It’s been a while since I used fpdf for a project though…

Its been a while, but I believe what you need to do is just simply:

$pdf->AddPage();

Thanks, works perfectly :slight_smile: