Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
savePDF() {
var options = {
fontSize: 14,
margins: {
left: 10,
right: 10,
top: 10,
bot: 10
}
};
const surveyPDF = new SurveyPDF.SurveyPDF(this.json, options);
console.log(this.result);
surveyPDF.data = this.result;
surveyPDF.save("survey PDF example");
}
}
savePDF = (model) => {
var surveyPDF = new SurveyPDF.SurveyPDF(this.json);
surveyPDF.data = model.data;
surveyPDF.save();
}