Export PDF bottomMessage padding

Export PDF bottomMessage padding

LibraRamisDevBatchLibraRamisDevBatch Posts: 1Questions: 1Answers: 0

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'
} );
},
}

https://ibb.co/dHATkb

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

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    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

  • SonicpasSonicpas Posts: 2Questions: 1Answers: 0

    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

This discussion has been closed.