diff --git a/src/Ghostview.c b/src/Ghostview.c index 6907bf5..7f7ae12 100644 --- a/src/Ghostview.c +++ b/src/Ghostview.c @@ -1442,6 +1442,12 @@ StartInterpreter(w) if (gvw->ghostview.safer) { argv[argc++] = "-dSAFER"; +# ifdef ALLOW_PDF + /* The file created by pdf2dsc opens the original + pdf file with the read operator. */ + if (gv_filename_dsc && (!gvw->ghostview.filename || !strcmp(gvw->ghostview.filename,"-"))) + argv[argc++] = "-dDELAYSAFER"; +# endif } if (gvw->ghostview.arguments) {