title: How to Create pdf with zend2 and dompdf
body: <p>I want to use dompdf for generation pdf document.
  i got pdf response with follwing code by using <strong>DOMPDFModule</strong>.But my question is how can i pass variable to the phtml file in order to get print on pdf file my code is as follows</p>
  
  <pre><code>    use DOMPDFModule\View\Model\PdfModel;
      ...
      ..
  
      public function printAction()
     {
      $campaignsList=$this-&gt;getcampaignTable()-&gt;getCampaignList();
      $model = new PdfModel();
      $model-&gt;setOption('paperSize', 'a4');
      $model-&gt;setOption('paperOrientation', 'landscape');
      return $model;
      }    
  </code></pre>
  
  <p>How can i print that $campaignList array in print.phtml file</p>
  
  <p>Thanks in advance</p>