a1anm
a1anm

Reputation: 1629

Magento Invoice - Start New Page

I am editing the invoice in Magento and wondered how I would start a new page ie. so that I can start adding content to page 2?

Upvotes: 1

Views: 1047

Answers (2)

Kalpesh
Kalpesh

Reputation: 5695

$pdf = new Zend_Pdf();

//use this line each time you want to create new page
$page = $pdf->newPage(Zend_Pdf_Page::SIZE_A4); 

$pdf->pages[] = $page;

Upvotes: 1

Jürgen Thelen
Jürgen Thelen

Reputation: 12727

You can use Mage_Sales_Model_Order_Pdf_Invoice::newPage() to add pages to an invoice PDF.

Upvotes: 0

Related Questions