I want to add a new PDF Class called “ Mage_Sales_Model_Order_Pdf_Ordermail “. (Like Mage_Sales_Model_Order_Pdf_Invoice)
This class is stored in the file Ordermail.php in Mage/Sales/Order/Pdf.
This class should be the template for a pdf which will be added to the Order Email the customers gets after placing his order.
But now my problem:
How can I access this class??
to generate the invoice pdf you can simply use “Mage::getModel(’sales/order_pdf_invoice’)->getPdf(array($this))”
when i try to use the Mage::getModel() function for my class ("Mage::getModel(’sales/order_pdf_orderemail’)")
I get an error.
So the question is how the register my new class “Mage_Sales_Model_Order_Pdf_Ordermail” for the Mage::getModel() method