Because you should use css to specify this, put something like this in the html head section:
<style type="text/css">
@page
{
size: landscape;
margin: 2cm;
}
</style>
<style type="text/css" media="print">
@page
{
size: landscape;
margin: 2cm;
}
</style>