moodle-mod_simplecertificate icon indicating copy to clipboard operation
moodle-mod_simplecertificate copied to clipboard

Lock so it is not editable in Acrobat?

Open dmcdonaldak opened this issue 4 years ago • 3 comments

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):

  • OS: Windows 10
  • Browser: not browser related, same in all browsers.

dmcdonaldak avatar Feb 05 '21 00:02 dmcdonaldak

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

bozoh avatar Apr 22 '21 17:04 bozoh

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

ShellyMcCollum avatar Feb 01 '23 15:02 ShellyMcCollum

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

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

shediac2 avatar Feb 01 '23 18:02 shediac2