Export PDF bottomMessage padding
Export PDF bottomMessage padding
here is my code
{
extend: 'pdfHtml5',
title: 'Sproglets Payment Report',
text:'Download PDF',
pageSize: 'LEGAL',
messageBottom: 'this is text messgae for footer area',
customize: function ( doc ) {
doc.pageMargin = [10,10,10,10];
doc.content.splice( 0, 0, {
margin: [ 0, 0, 0, 0 ],
alignment: 'center',
image: 'data:image/png;base64'
} );
},
}
in above image "his is text messgae for footer area" is footer text i just want to add space from top in this message, can anyone tell me how i can do this ???
Answers
You'd need to modify the pdfmake document that has been created (a bit like you already are for the image) to add that padding. The pdfmake documentation would be where to start.
Allan
You can add a line jump "\n" before the text, example:
messageBottom: '\n\n this is text messgae for footer area',
I hope it can help you =P