Skip to content Skip to sidebar Skip to footer

Adding A Fixed Header/footer For Each Page Jspdf

I am using jsPDF to generate PDF's out of dynamic HTML content of my web-application. Right now I am trying to give those PDF's a unique layout. I want to add a 'header' & 'foo

Solution 1:

See https://github.com/MrRio/jsPDF/pull/260

You can use HTML's elements <header> and <footer> for that purpose, for example:

<footer><divstyle='text-align:center;'>Page <spanclass="pageCounter"></span>/<spanclass="totalPages"></span></div></footer>

Post a Comment for "Adding A Fixed Header/footer For Each Page Jspdf"