-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.1
-
MOODLE_501_STABLE
-
mdl-85483-main
-
We have this plugin for 3.9 https://github.com/catalyst/moodle-tool_fileredact which redacts exif data from images, and JS from PDF files.
Since it was developed, however, EXIF redaction has been added to core https://tracker.moodle.org/browse/MDL-75850
Given there is no way at the moment for plugins to add redaction services (see https://tracker.moodle.org/browse/MDL-85481 ), I think this would be appropriate to add to the other JS cleaning counterpart to core.
It just uses ghostscript which is already used elsewhere in core and it is quite trivial/very little code to add the new service.