Studyon Minte9.com
Magento




PDF change format



	app/code/local/Mage/Sales/Model/Order/Pdf
		Abstract.php (insertTotals ...)
		Invoice.php (getPdf ...)

- app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php (printAction())
- app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php (getPdf())


To modify products line height:

<?php

	public function getPdf($invoices = array())
	{
		...
		foreach ($invoice->getAllItems() as $item) {
			if ($k > 0) {
				$this->y += 5; // this will decrease product line height
			}
		...
	}