0

PDF Invoice Design is not proper. Text are not aligned properly. I just want to make the text aligned properly or draw nice table for it.

 app/code/core/mage/sales/model/pdf/abstract.php

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

i did look in both files.

in invoice.php file is function _drawHeader(Zend_Pdf_Page $page) that is for the headings.

while the printed items like: product name, price , qty etc are not properly aligned. i want to draw nice table for it.

i did changed $this->y -= 10; also did try to change the parameter of the array $lines but not working.

need help to aligned text and draw table in PDF.

find that attachment:enter image description here

1 Answer 1

1

Change the file Mage_Sales_Model_Order_Pdf_Items_Invoice_Default which is in

 app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice
8
  • what should i change? i know there is file abstract.php and invoice.php in app/code/core/mage/sales/model/order/pdf/invoice.php and abstract.php Commented Mar 24, 2014 at 4:39
  • check the path there is not the file abstract.php, you need to change in default.php in the feed values
    – Helphin
    Commented Mar 24, 2014 at 4:45
  • /app/code/core/Mage/Sales/Model/Order/Pdf on thios path there is abstract.php file. i don't see any default.php file there Commented Mar 24, 2014 at 4:49
  • path is app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice check the answer, got to /Items/Invoice from your path
    – Helphin
    Commented Mar 24, 2014 at 4:51
  • 1
    change the feed values
    – Helphin
    Commented Mar 24, 2014 at 4:56

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.