Magento AdminHTML Invoice PDF – Draw Table for Purchased Item

adminhtmlinvoicemagento-1.7magento-1.8pdf

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

Best Answer

Change the file Mage_Sales_Model_Order_Pdf_Items_Invoice_Default which is in

 app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice