This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ private function pdf_view_export_data() {
339
339
exec ('pdfunite ' . implode (' ' , $ collection ) . ' ' . $ pdfdirectory . '/ ' . $ collectionid . '_ ' . $ collectionname . '.pdf ' , $ output );
340
340
}
341
341
else {
342
- exec ('gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE= ' . $ pdfdirectory . '/ ' . $ collectionid . '_ ' . $ collectionname . '.pdf -dBATCH ' . implode (' ' , $ collection ), $ output );
342
+ exec ('gs -dSAFER - dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE= ' . $ pdfdirectory . '/ ' . $ collectionid . '_ ' . $ collectionname . '.pdf -dBATCH ' . implode (' ' , $ collection ), $ output );
343
343
}
344
344
// remove the page pdfs that are now in collections
345
345
foreach ($ collection as $ c ) {
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ private function pdf_view_export_data() {
323
323
exec ('pdfunite ' . implode (' ' , $ collection ) . ' ' . $ pdfdirectory . '/ ' . $ collectionid . '_ ' . $ collectionname . '.pdf ' , $ output );
324
324
}
325
325
else {
326
- exec ('gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE= ' . $ pdfdirectory . '/ ' . $ collectionid . '_ ' . $ collectionname . '.pdf -dBATCH ' . implode (' ' , $ collection ), $ output );
326
+ exec ('gs -dSAFER - dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE= ' . $ pdfdirectory . '/ ' . $ collectionid . '_ ' . $ collectionname . '.pdf -dBATCH ' . implode (' ' , $ collection ), $ output );
327
327
}
328
328
// remove the page pdfs that are now in collections
329
329
foreach ($ collection as $ c ) {
You can’t perform that action at this time.
0 commit comments