CMS Development

SVenkatesan
Participante

Quote PDF - Potrait to Landscape Conversion

Is it possible to convert Quote PDF to Landscape , by default it takes A4. How to control PDF generation CSS ?

0 Avaliação positiva
1 Resposta 1
Anton
Especialista reconhecido(a) | Parceiro Diamante
Especialista reconhecido(a) | Parceiro Diamante

Quote PDF - Potrait to Landscape Conversion

Hi @SVenkatesan,

you should find in your quote theme the CSS file which handles everything. The html,body-tag should have a fixed width and height. 

So if there's something like

@media print{
body{
width:21cm;
height:29.7cm;
}
}

and you want to have it landscape, just switch the values to

@media print{
body{
width:29.7cm;
height:21cm;
}
}

 

Note: if those values are inside a "@media print" tag, you won't see any changes in the web-view since your values will only be applied if somebody prints the page - in this case a quote is beeing generated

 

 

best, 

Anton

Anton Bujanowski Signature
0 Avaliação positiva