[LON-CAPA-cvs] cvs: loncom /interface printout.pl
raeburn
raeburn at source.lon-capa.org
Thu Jul 11 08:15:16 EDT 2024
raeburn Thu Jul 11 12:15:16 2024 EDT
Modified files:
/loncom/interface printout.pl
Log:
- Bug 5899 "printing a pdf file in a course via the printing option"
Support GhostScript 9.50 and newer (in which SAFER mode is enabled by
default.
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.169 loncom/interface/printout.pl:1.170
--- loncom/interface/printout.pl:1.169 Sat Apr 15 21:50:34 2023
+++ loncom/interface/printout.pl Thu Jul 11 12:15:16 2024
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
#
-# $Id: printout.pl,v 1.169 2023/04/15 21:50:34 raeburn Exp $
+# $Id: printout.pl,v 1.170 2024/07/11 12:15:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -544,7 +544,7 @@
last if ($device ne '');
}
if ($device ne '') {
- $comma = "gs -sDEVICE=$device -dLanguageLevel=1.5 ";
+ $comma = "gs -sDEVICE=$device -dLanguageLevel=1.5 -permit-file-read=* ";
&busy_wait_command("$comma -o $tempo_file $new_name_file 2>/dev/null 1>/dev/null",
"for $status_statement now validating PS",
\%prog_state, $tempo_file);
More information about the LON-CAPA-cvs
mailing list