Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
You can use:
$pdf = Mage::getModel('sales/order_pdf_invoice')->getPdf(array($invoice));
where $invoice is the invoice object.
Required, but never shown