//import image
var imgData= runtime.globalVars.imageURLstring;
doc.addImage(imgData, 'PNG', 15, 40, 180, 180);
However, this doesn't work. I'm not sure what I'm doing wrong. I'm trying to add the snapshot which is in PrintToPDF-1.c3p to createPDF.c3p.
createPDF.c3p - Here the file that generate the file using jspdf
This is the other example that prints a snapshot by opening the print option. I would need to invoke the download as soon the user press the button.
PrintToPDF-1.c3p - Here the file that invoke the pdf print from the snapshot
If anyone has an example where I can generate a pdf from a snapshot, even better if I can add text (as in createPDF.c3p) on it and invoke the download as soon the user press the button would be great.
Thank you!