title: How can I customize page number in laravel dompdf?
body: <p>I get from here : <a href="https://github.com/barryvdh/laravel-dompdf" rel="nofollow noreferrer">https://github.com/barryvdh/laravel-dompdf</a></p>
  
  <p>My controller is like this :</p>
  
  <pre><code>public function listdata()
  {
      $pdf=PDF::loadView('print_tests.test_pdf');
      $pdf-&gt;setPaper('L', 'landscape');
      return $pdf-&gt;stream('test_pdf.pdf');
  }
  </code></pre>
  
  <p>My view is like this :</p>
  
  <pre><code>&lt;script type="text/php"&gt;
  
      if ( isset($pdf) ) {
          $x = 72;
          $y = 18;
          $text = "{PAGE_NUM} of {PAGE_COUNT}";
          $font = $fontMetrics-&gt;get_font("Arial", "bold");
          $size = 6;
          $color = array(0,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>I use this : </p>
  
  <blockquote>
    <p>"barryvdh/laravel-dompdf": "^0.8.0",</p>
  </blockquote>
  
  <p>When executed, the page number not display.</p>
  
  <p>How can I solve it?</p>