I'm using Laravel 5.7 on my application and I installed codedge/laravel-fpdf to create PDF files. The installation was successful and I was able to generate PDF file with their sample on the documentation:
Fpdf::AddPage(); Fpdf::SetFont('Courier', 'B', 18); Fpdf::Cell(50, 25, 'Hello World!'); Fpdf::Output(); exit();
However, I want to change the paper size and page orientation. So I run:
php artisan vendor:publish --provider="Codedge\Fpdf\FpdfServiceProvider" --tag=config
and it generates config file at config/fpdf.php
When I try to change the orientation and size it doesn't work.
'orientation' => 'L', 'unit' => 'mm', 'size' => 'Letter',
What could be the possible reason to this?