Generate PDF from HTML?

The name of the pictureThe name of the pictureThe name of the pictureClash 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



my object









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.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS