|
[index.js]
toolbarClick(args) {
this.grid.pdfExport(this.getPdfExportProperties());
}
getPdfExportProperties() {
return {
header: {
fromTop: 0,
height: 120,
contents: [
{
type: 'Text',
value: 'INVOICE',
position: { x: 280, y: 0 },
style: { textBrushColor: '#C25050', fontSize: 25 },
},
],
},
footer: {
fromBottom: 160,
height: 100,
contents: [
{
type: 'Text',
value: 'Thank you for your business !',
position: { x: 250, y: 20 },
style: { textBrushColor: '#C67878', fontSize: 14 },
},
{
type: 'Text',
value: '! Visit Again !',
position: { x: 300, y: 45 },
style: { textBrushColor: '#C67878', fontSize: 14 },
},
],
},
fileName: 'pdfdocument.pdf',
};
}
|