0

Following this tutorial added following code to

app/code/core/mage/sales/model/order/pdf/invoice.php

  protected function _drawFooter(Zend_Pdf_Page $page, $store = null)
    {
        $this->_setFontRegular($page, 10);
        $page->setFillColor(new Zend_Pdf_Color_RGB(0, 0, 0));
        $this->y -= 10;
        $page->drawLine(25, $this->y-200, 570, $this->y-200);

        $shippingAddress = $this->_formatAddress($order->getShippingAddress()->format('pdf'));
        
        $page->drawText($shippingAddress , 35, $this->y-230, 'UTF-8');
    }

Getting error.

Expected result Scrrenshot : https://snipboard.io/dCTYWi.jpg

1
  • which error you getting? Jul 3, 2020 at 9:43

1 Answer 1

1

please refer the link below ,this may help you

https://inchoo.net/magento/how-to-add-custom-attribute-to-magentos-pdf-invoice/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.