I've been using the script
@page {
size:A4 landscape;
}
but it only works in the Chrome browser. How to print landscape automatically with a Mozilla browser ??
Unfortunately, last I recall hearing is that the @page rule in CSS has been cut down in scope. (If anyone knows otherwise, please correct me)
If you need to have your PHP page print reliably in Mozilla (and all other browsers), what about using server-side PDF generation? The functions in PHP to support this can be found at http://www.php.net/pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With