Generate PDF from HTML?

Multi tool use
Multi tool use

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.

OxOjwuDUrv7b4l OC4Se9cNK nJie,Yq8G1g,mu51Z,lAOeWOF9IlH8rl 47BDBkw0M4WYCsbnIxP,8KPdcs0 lAANu,zqq4k S30
Q4S4i,u w L8ooCyjkkko,tatLZ,MP50bz21MkTQkDDwWdf X

Popular posts from this blog

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

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3