jsPDF auto-table header text not working and how to render html to header

jsPlayer picture jsPlayer · Jul 8, 2018 · Viewed 9.6k times · Source

Header example enter image description here

using many examples online i was trying to print a header text to the top of the table. One thing i cant do is update the jsPDF and auto-table versions.This is due to some internal conflict where the code eventually goes. Question 1 is why is the the header not rendering to the top. Second question is how can i render html to the top of the header instead of just text. Currently the doc.text only takes string as a parameter.

i want to render something like : "Main Title small title " to the head

Answer

George picture George · May 7, 2019

BeforePageContent is deprecated.. use :

didDrawPage : header

as replacement.