landscape not working #731
Replies: 4 comments 2 replies
-
@Ghada-Jaber Did you manage to solve this, I have the same issue. |
Beta Was this translation helpful? Give feedback.
-
@Ghada-Jaber : Yes. Same here... Someone has a solution... ? Thank you |
Beta Was this translation helpful? Give feedback.
-
Landscape can also be controlled with css/html. Adding this to the css solved my issue:
|
Beta Was this translation helpful? Give feedback.
-
It's not necessary a bug. If you are using a css library, like bootstrap, they use a set if printing options, it's possible that chrome takes the css settings instead. In many cases, you won't come around to setup your html for printing anyway. |
Beta Was this translation helpful? Give feedback.
-
hello I am trying to do a pdf in landscape format but it always returned normal
this is the code
Browsershot::html($this->renderCertificateHtml($data))->showBackground()->landscape()->savePdf('testPdf.pdf');
any idea what is the issue
Beta Was this translation helpful? Give feedback.
All reactions