bozoh / moodle-mod_simplecertificate

It's NOT RECOMMENDED to install version below 2.2.6 (MOODLE_31), due a security issues See more in README
17 stars 44 forks source link

Lock so it is not editable in Acrobat? #240

Open dmcdonaldak opened 3 years ago

dmcdonaldak commented 3 years ago

Describe the bug Is there a way to lock this certificate so it is not editable in Acrobat?

Moodle Version(s) The moodle version (Moodle 3.7)

To Reproduce Download and open in Acrobat

Expected behavior Is there a way to add password protection?

Desktop (please complete the following information):

bozoh commented 3 years ago

last time i check (long time ago) this functionality in the pdflib which this plugin uses was not possible

ShellyMcCollum commented 1 year ago

Wondered if there was any updates on this capability, as this has become an issue for a couple of our clients. Thanks!

shediac2 commented 1 year ago

Add the line - $pdf->SetProtection(array('modify'));

In locallib.php - around line 954 - this makes it a bit harder to edit the pdf