CMS Development

SVenkatesan
Member

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 Upvotes
1 Reply 1
Anton
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

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 Upvotes