MDL-82440 assignfeedback_editpdf: Force ghostscript pdf's to pdf v1.4

This commit is contained in:
Frederik Milling Pytlick
2024-12-09 15:50:03 +01:00
parent 0888a6d324
commit 02ec5c8587
+1 -1
View File
@@ -734,7 +734,7 @@ class pdf extends TcpdfFpdi {
$gsexec = \escapeshellarg($CFG->pathtogs);
$tempdstarg = \escapeshellarg($tempdst);
$tempsrcarg = \escapeshellarg($tempsrc);
$command = "$gsexec -q -sDEVICE=pdfwrite -dPreserveAnnots=false -dSAFER -dBATCH -dNOPAUSE "
$command = "$gsexec -q -sDEVICE=pdfwrite -dPreserveAnnots=false -dSAFER -dBATCH -dNOPAUSE -dCompatibilityLevel=1.4 "
. "-sOutputFile=$tempdstarg $tempsrcarg";
exec($command);