Prefix style attributes in header/footer with style and support relative positions

This commit is contained in:
Sebastián Katzer
2019-01-24 11:46:20 +01:00
parent 22e8d95128
commit ea223c3609
2 changed files with 81 additions and 8 deletions

View File

@@ -61,14 +61,33 @@ exports.getDefaults = function () {
labels: [{
text: 'Awesome Printer Plug-in',
align: 'center',
italic: true,
color: '#FF0000'
style: {
align: 'center',
italic: true,
color: '#FF0000'
}
},{
showPageIndex: true,
align: 'right',
bold: true
style: {
align: 'right',
bold: true
}
}]
},
footer: {
unit: 'mm',
height: 3,
label: {
text: 'Copyright (c) 2013-2019 Sebastián Katzer',
style: { size: 9 },
position: {
unit: 'mm',
top: 1.5,
right: 5
}
}
}
};
};