I customized my pdf invoice. I use graphics for header (logo and company address) and footer (company bank account information, contacts etc.). So my layout on the pdf looks something like this:
As you can hopefully see. The text is cut where the red arrow points. Only if the amount of ordered products is high enough to force the pdf to create a second page, the invoice is correct.
Where exactly does the pdf manage the creation of new pages. Is there a possibility to define the maximum page height, so that in this case, all contents that would collide with the top border of the footer graphic, would force a next page?
Best Answer
Here is a guide for that. You should check the Zend_Pdf_Page class.