Closed jrmypttrsn closed 5 years ago
What method are you trying to chain? And what error is it throwing ?
At the moment, ->landscape()
is ignored (the pdf remains portrait) and if I put it after ->inline()
then I get Method Illuminate\Http\Response::landscape does not exist, which I would expect to happen.
I just tested it on a Laravel 5.7 fresh installation and landscape()
is working as expected. Is there any way I can replicate this issue?
I will close this issue since there was no reply and the method seems to be working fine. Feel free to reopen it if you have more info on how to replicate the issue
I'm getting the same thing with both download and landscape
PDF::loadView($view)->landscape()->download()
The landscape() seemingly being ignored may be due to included bootstrap css. This may force page size to portrait. Set $enable-print-styles scss variable to false or specify page size: a4 landscape.
My current return statement:
works just fine. But chaining any methods from spatie's library before
->inline()
seem to be ignored. Chaining them after results in method does not exist errors.Any idea what I may be doing wrong?