I am trying to use Snappy PDF from barrvdh to make and download PDF file from HTML code. This is my code
public function example()
{
$pdf = \PDF::loadView('index');
return $pdf->download('test.pdf');
}
Like the title, when user click button to download pdf, i want to put all content in only one page and set page size to A3. With dompdf, i can easy to set page size in dompdf.php, like below:
"default_paper_size" => "a4",
But i don't know how to set page size and put content in single page with snappy.
Thanks,