I get from here : https://github.com/barryvdh/laravel-dompdf
My controller is like this :
public function listdata()
{
$pdf=PDF::loadView('print_tests.test_pdf');
$pdf->setPaper('L', 'landscape');
return $pdf->stream('test_pdf.pdf');
}
My view is like this :
<script type="text/php">
if ( isset($pdf) ) {
$x = 72;
$y = 18;
$text = "{PAGE_NUM} of {PAGE_COUNT}";
$font = $fontMetrics->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->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle);
}
</script>
I use this :
"barryvdh/laravel-dompdf": "^0.7.0",
When executed, the font is not Arial and the page is not display.
How can I solve it?