0

I have created a certificate that when the user hits print it needs to print in landscape. This option works great is chrome but not in firefox or IE

<style type="text/css" media="print">
@page { size: landscape; }
</style>

Does anyone know of any options?

j08691
  • 197,815
  • 30
  • 248
  • 265

2 Answers2

0

Try this code. it works for me

<style type="text/css" media="print">
    .page
    {
     -webkit-transform: rotate(-90deg); 
     -moz-transform:rotate(-90deg);
     filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    }
</style>
Microsmsm
  • 2,854
  • 3
  • 17
  • 35
0

could i suggest the uses of fpdf, as well s orientation options you can also change the document size, and add images. it works with co-ordinates so it is a bit of a trial and error task to start with but i use it all the time.

http://www.fpdf.org/