title: How to add page number in laravel dompdf?
body: <p>I add <code>$pdf-&gt;set_option('isPhpEnabled', true);</code> is like this :</p>
  
  <pre><code>public function listdata()
  {
      $data = User::all();
  
      $pdf=PDF::loadView('print_tests.test_pdf', ['data' =&gt; $data]);
      $pdf-&gt;set_option('isPhpEnabled', true);
      $pdf-&gt;setPaper('L', 'landscape');
      return $pdf-&gt;stream('test_pdf.pdf');
  }
  </code></pre>
  
  <p>In body (View) I add like this :</p>
  
  <pre><code>&lt;script type="text/php"&gt;
      if ( isset($pdf) ) {
          // OLD 
          // $font = Font_Metrics::get_font("helvetica", "bold");
          // $pdf-&gt;page_text(72, 18, "{PAGE_NUM} of {PAGE_COUNT}", $font, 6, array(255,0,0));
          // v.0.7.0 and greater
          $x = 72;
          $y = 18;
          $text = "{PAGE_NUM} of {PAGE_COUNT}";
          $font = $fontMetrics-&gt;get_font("helvetica", "bold");
          $size = 6;
          $color = array(255,0,0);
          $word_space = 0.0;  //  default
          $char_space = 0.0;  //  default
          $angle = 0.0;   //  default
          $pdf-&gt;page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>There is exist error like this : </p>
  
  <pre><code>FatalThrowableError in PrintTestController.php line 21: Call to undefined method Barryvdh\DomPDF\PDF::set_option()
  </code></pre>
  
  <p>Note :</p>
  
  <p>I using barryvdh/laravel-dompdf": "^0.7.0" (v0.7)</p>
  
  <p>Is there any people who can help to me?</p>