Exemple #1
0
 /**
  * insert customer address and all header like customer number, etc.
  *
  * @param Zend_Pdf_Page             $page   current Zend_Pdf_Page
  * @param Mage_Sales_Model_Abstract $source source for the address information
  * @param Mage_Sales_Model_Order    $order  order to print the document for
  */
 protected function insertAddressesAndHeader(Zend_Pdf_Page $page, Mage_Sales_Model_Abstract $source, Mage_Sales_Model_Order $order)
 {
     // Add logo
     $this->insertLogo($page, $source->getStore());
     // Add billing address
     $this->y = 692 - $this->_marginTop;
     $this->_insertCustomerAddress($page, $order);
     // Add sender address
     $this->y = 705 - $this->_marginTop;
     $this->_insertSenderAddessBar($page);
     // Add head
     $this->y = 592 - $this->_marginTop;
     $this->insertHeader($page, $order, $source);
     /* Add table head */
     // make sure that item table does not overlap heading
     if ($this->y > 575 - $this->_marginTop) {
         $this->y = 575 - $this->_marginTop;
     }
 }