Hello there,
I found two Construct 3 projects which generate a pdf. Everything works well, however, I would like to attach a snapshot on the pdf page.
I have added the script in myPDF.js increatePDF.c3p:
//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!
Develop games in your browser. Powerful, performant & highly capable.
hi!!
you can convert "pdf" to "png" to.
If you dont know how, comment me.