...
We have supplied a couple of other sample templates in the Examples folder.
Anchor | ||||
---|---|---|---|---|
|
Code Block |
---|
//Leave the properties which you want to change, you can safely remove the rest var defaultSettings = { 'marginTop' : 10, //mm 'marginRight' : 10, //mm 'marginBottom' : 10, //mm 'marginLeft' : 10, //mm 'pageSize' : 'A4', //full list http://doc.trolltech.com/4.6/qprinter.html#PageSize-enum 'orientation' : 'portrait', //Possible values 'landscape' & 'portrait' 'headerHeight' : 0, //mm 'headerPadding' : 0, //mm 'footerHeight' : 15, //mm 'footerPadding' : 1 //mm 'scales' : [ 250000, 125000, 50000, 25000, 10000, 5000, 2500, 1250, 1000, 500, 250, 125 ] } |
...
You can change the order of the header or footer; change the position of the map element; add extra css classes to the elements to control using css. You may also change the logo but make sure the height of the logo image does not exceed the height of the footer/header provided in the Template Settings and of course the copyright text.
...