I'm trying to use the Secure PDF plugin in Moodle 4.5 on a local Apache server. I've made all the changes mentioned for the ImageMagick theme, but it still doesn't work. Any suggestions?
Change policy.xml as follows:
<policymap>
<policy domain="delegate" rights="read|write" pattern="gs" />
<policy domain="coder" rights="read|write" pattern="PDF" />
<policy domain="delegate" rights="read|write" pattern="gswin64c" />
</policymap>
But when I upload a document to Moodle, it throws the following error:
ImagickException: FailedToExecuteCommand "gs" -sstdout=%stderr-dQUIET-DSAFER-DBATCH-DNOPAUSE-DNOPROMPT-dMaxBitmap=500000000-dAlign ToPixels=0-dGridFitTT=2"-SDEVICE=pngalpha" -dTextAlphaBits=4-dGraphicsAlphaBits=4 "-r150x150"-dPrinted=false*-sOutputFile=C:/Users/INNOVA~1/AppData/Local/Temp/magick-6Mjg7ywlThqzo3HGDLdGq0_2TmNV8ERx%d" "-fC:/Users/...AppData/Local/Temp/magick-K-JKeJ5TTiNf90cEz5-Kq0SwYdHxKxXx" "-fC:/Users/.../AppData/Local/Temp/magick-gyUWDIH8th4X3P540qJayx5JgNDVKrS-" (El sistema no puede encontrar el archivo especificado.)
@error/delegate.c/ExternalDelegateCommand/516 in
C:\Users\...\server\moodle\mod\securepdf\view.php:98 Stack trace: #0
C:\Users\...\server\moodle\mod\securepdf\view.php(98): Imagick->readImageBlob('%PDF-1.7\r\n%\x35\x35\x35\xB5...) #1 (main)
I appreciate any help you can give me.