I am using barryvdh/laravel-snappy using a windows machine. this is my code in controller:
$pdf = \Barryvdh\Snappy\Facades\SnappyPdf::loadHTML($req->name)->setPaper('a4')->setOption('margin-bottom, 0)->save(rand().'.pdf');
the problem is that the file is creating small in a4 size as the given screenshot:
CodePudding user response:
$pdf = \Barryvdh\Snappy\Facades\SnappyPdf::loadHTML($req->name)->setPaper('a4')->setOption('zoom', 1,2822)->save(rand().'.pdf');