title: Print invoice pdf of pending orders in magento
body: <p>I want to print Invoice of both pending and complete status orders in pdf.But right now it prints only complete status orders invoice only. How can i change it.</p>
  
  <p>This is the line line i found under <strong>app/code/core/Mage/Adminhtml/controllers/Sales/Ordercontroller.php</strong></p>
  
  <p>function name <em>pdfinvoicesAction</em></p>
  
  <pre><code>$invoices = Mage::getResourceModel('sales/order_invoice_collection')
                      -&gt;setOrderFilter($orderId)
                      -&gt;load();
  </code></pre>
  
  <p>This one collects the completed order invoices. how can make it to collect both pending and 
  complete status orders </p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks </p>