Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 Magento 中编辑发票,想知道如何开始一个新页面,即。以便我可以开始向第 2 页添加内容?
$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;
您可以使用Mage_Sales_Model_Order_Pdf_Invoice::newPage()将页面添加到发票 PDF。
Mage_Sales_Model_Order_Pdf_Invoice::newPage()