You can use setPaper
to load view in your format. See more.
public function listdata()
{
$pdf = PDF::loadView('pdf.test_pdf')->setPaper('a4', 'landscape');
return $pdf->stream('test_pdf.pdf');
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community