In Magento Backend, when looking at an invoice details, it is possible to get a pdf version in clicking the "print" button.
Is there a way to get this pdf invoice using a php script?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityYou can use:
$pdf = Mage::getModel('sales/order_pdf_invoice')->getPdf(array($invoice));
where $invoice
is the invoice object.