Generate PDF from HTML?
Clash Royale CLAN TAG#URR8PPP
Generate PDF from HTML?
I need to be able to generate a PDF of the page the user is currently on so i try to generate PDF with this function,all things are all right but i can't access to the classes to display the nomC
generationPDF()
var columns = [
title: "Nom ", dataKey: "nom" ,
title: "Prenom", dataKey: "prenom" ,
title: "Classes attribuées", dataKey: "nomC" ,
title: "Email", dataKey: "email" ,
title: "Numéro de télèphone", dataKey: "tel1"
];
var doc = new jsPDF("l", "mm", [297, 210]);
doc.autoTable(columns, this.data,
theme: "grid",
styles:
overflow: "linebreak",
fontSize: 7
,
margin: top: 22 ,
addPageContent: function (data)
doc.text("Liste des enseignants", 128, 15);
);
doc.save("enseignant.pdf");
this is my data table
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.