Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Invoice Print Problem
 
MarkR
Jr. Member
 
Total Posts:  6
Joined:  2008-09-04
 

Using 1.1.3 and tried to increase the font/typestyle size on the invoice, changed the line:

$style->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA_BOLD), 7);
to
$style->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA_BOLD), 10);
in
/app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php

but this gave me an error message, I changed the line back to:

$style->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA_BOLD), 7);

However I still get the error message when I click on print in the Sales > Invocies section, any ideas?

Error is:

Cannot send headers; headers already sent in /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php, line 1
Trace:
#0 /Zend/Controller/Response/Abstract.php(114): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /app/code/core/Mage/Adminhtml/Controller/Action.php(278): Zend_Controller_Response_Abstract->setHeader(’Pragma’, ‘public’, true)
#2 /app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php(81): Mage_Adminhtml_Controller_Action->_prepareDownloadResponse(’invoice2008-09-...’, ‘&#xPD;F-1.4?%?????...’, ‘application/pdf’)
#3 /app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Adminhtml_Controller_Sales_Invoice->printAction()
#4 /app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(137): Mage_Core_Controller_Varien_Action->dispatch(’print’)
#5 /app/code/core/Mage/Core/Controller/Varien/Front.php(168): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#6 /app/Mage.php(420): Mage_Core_Controller_Varien_Front->dispatch()
#7 /index.php(46): Mage::run()
#8 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top