hhurz / tableExport.jquery.plugin

jQuery plugin to export a html table to JSON, XML, CSV, TSV, TXT, SQL, Word, Excel, PNG and PDF
MIT License
984 stars 714 forks source link

Adding Header and Footer to every page with image #228

Open aaronfhd opened 6 years ago

aaronfhd commented 6 years ago

I would like to add a header to every page. With a logo, How would I go about doing this. A example would be great.

Thanks.

hhurz commented 6 years ago

Supposing you want to do that when exporting to pdf, there is currently no easy way to realize it. I put your request on to the list of feature request and will come back as soon there is a solution.

aaronfhd commented 6 years ago

jspdf-autotable newest release has margin: {top: 60}, addPageContent: function(data) { doc.text("Header", 40, 30); } Which adds to the header

Don't know if this helps

gadget00 commented 5 years ago

any advances on this one? at least a text header would be a great addition

MartinPerrie commented 9 months ago

Hi. Is there likely to be any progress with this issue? In my case I would like to add a footer to every page. I saw that jsPDF-AutoTable recommends using "didDrawPage" https://github.com/simonbengtsson/jsPDF-AutoTable/issues/559#issuecomment-543200778

I am using @wenzhixin 's Bootstrap-Table with it's export plugin. Would be really cool if I could use that and include a page header or footer on each page of the PDF!

IRFAANFTK commented 6 months ago

has anyone been able to achieve this?