Forum Discussion
Export course to a PDF (with variables)
The demo uses "jsPdf" which is an older JavaScript library - the pdf is constructed by using a png image of each page and then filling in the learner own text by using "x" and "y" coordinates on the page. So you could create images of each screen and overlay and then grab them as png's
BUT - we have recently (like in the last two weeks) started using another library "pdf-Lib" - this has the capability to fill out a pdf "form". This is much easier. If you created your whole course as a pdf (you could export it as a pdf) - then edit the pdf and make it into a pdf form (using Adobe Acrobat) naming the fields where you want the learner's own notes to appear.
The JavaScript retrieves the input variables and then places them in the pdf using the field names you have defined in the form.
So yes, each learner gets a unique pdf to download...
But, for Matt, I'm still not sure how to store that pdf file on the server - it would have to have a unique filename for each user so he could then pick it up at a later stage and email it. I'm sure it's possible - just have never done it...