[Bug]: Landscape is not working
Closed this issue · 1 comments
Lintume commented
What happened?
I am trying to do a pdf in landscape format, but it always returns normal.
this is the code:
Pdf::view('documents.articles.pdf', ['article' => $this->article]) ->landscape() ->disk('public') ->save($path);
How to reproduce the bug
When I generate doc using code above I'm getting portrait orientation instead landscape.
Package Version
1.0.0
PHP Version
8.1
Laravel Version
10.32.1
Which operating systems does with happen with?
macOS
Notes
No response
freekmurze commented
Our tests indicate that this is working. https://github.com/spatie/laravel-pdf/blob/main/tests/PdfTest.php#L109-L117
Could you submit a PR with a failing test?