Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to print landscape automatically with Mozilla browser?

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 ??

like image 848
N4ta nata Avatar asked Jan 01 '26 00:01

N4ta nata


1 Answers

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

like image 81
nybbler Avatar answered Jan 02 '26 15:01

nybbler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!