I would like PDF API generator to generate my table, I can do it for texts and images, but I don't know about tables. Need urgent help. I want to clarify everything in the backend has been done and is working successfully
import {generatePdfFromData} from 'backend/pdfhelper.jsw';
let url ;
let results = await wixData.query("INSPECTOR").find();
let piste = results.items.map(item => item.questionChecklist);//My TableData
const station = $w('#text9').text ;
const data = {station, piste};
url = await generatePdfFromData(data)
console.log(url)
$w('#button2').link = url;
$w('#button2').target = "_blank";
Hi,
If this is a question about how to set up repeating data in the PDF template I would recommend reaching out to the PDF Generator API support.
Once you have it set up they should provide you with the data structure necessary to populate it (probably an array). Best,
Eitan