PDF and Image for Custom Certificate

PDF and Image for Custom Certificate

از Rudraksh Batra در
Number of replies: 1
عکس Plugin developers

Hi,

I'm currently using the Custom certificate plugin ([Moodle Custom certificate plugin]). I'd like to understand:

  1. PDF Storage Location: Where are the generated PDF certificates stored after a user successfully completes the process?
  2. Image Generation: Is it possible to automatically generate an image of the certificate alongside the PDF during the backend process?
  3. Image Display in Certificate Section: If I customize the certificate section of my Moodle site, could I potentially display the generated image there?

Regards

Rudraksh

میانگین امتیازات:  -
In reply to Rudraksh Batra

Re: PDF and Image for Custom Certificate

از Mark Nelson در
عکس Core developers عکس Documentation writers عکس Particularly helpful Moodlers عکس Peer reviewers عکس Plugin developers عکس Testers
Hi Rudraksh,

1. The PDFs are generated on the fly and are stored in a temporary location and are removed once the http request has finished.
2. Yes, but it will require coding. Again, these are generated on the fly and not stored anywhere. This code would have to be implemented. Best way would be a setting to decide whether or not to store them in the data directory for Moodle. This has been something I have thought of from the beginning but never got round to implementing. See https://github.com/mdjnelson/moodle-mod_customcert/issues/38.
3. Hm. Not sure about how the section code works and how it decides what to display. However it would require quite a substantial change in the code for the certificate plugin so that it generates an image, instead of a PDF. Also, the certificate is unique depending on what users views it so there would have to be some logic in it. This would probably require a bit of code to achieve.

Regards,

Mark