title: How to create a pdf in magento?
body: <p>I want to create a pdf in magento of the product list in the backend/admin.
  i don't know how to do it and the things i find on the internet are not that helpfull.
  Hope somebody can help me.</p>
  
  <p>gr</p>
  
  <p><em>edit</em></p>
  
  <pre><code>class Wouterkamphuisdotcom_Web_Adminhtml_WebController extends Mage_Adminhtml_Controller_action {
  
  protected function _initAction() {
      $this-&gt;loadLayout()
              -&gt;_setActiveMenu('web/items')
              -&gt;_addBreadcrumb(Mage::helper('adminhtml')-&gt;__('Items Manager'), Mage::helper('adminhtml')-&gt;__('Item Manager'));
  
      return $this;
  }
  public function exportPdfAction(){
      $fileName = 'customers.pdf';        
      $content = $this-&gt;getLayout()-&gt;createBlock('Web/Web_Grid')-&gt;getPdfFile();
      $this-&gt;_prepareDownloadResponse($fileName, $content);
  }
  </code></pre>
  
  <p>this is my controller</p>