From 89de896e7558f7ff292c8d92519495c0a27f5180 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 12 Jun 2021 13:15:56 -0600 Subject: [PATCH] Changed to maintain compatibility with newer version of ghost script. Credit to demonspork for this fix. --- app/fax/fax_send.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/fax/fax_send.php b/app/fax/fax_send.php index 0598e84b2b..e9b37daa26 100644 --- a/app/fax/fax_send.php +++ b/app/fax/fax_send.php @@ -398,7 +398,7 @@ if (!function_exists('fax_split_dtmf')) { chdir($dir_fax_temp); //convert pdf to tif - $cmd = gs_cmd("-q -r".$gs_r." -g".$gs_g." -dBATCH -dPDFFitPage -dSAFER -dNOPAUSE -dBATCH -sOutputFile=".correct_path($fax_name).".tif -sDEVICE=tiffg4 -Ilib stocht.ps -c \"{ .75 gt { 1 } { 0 } ifelse} settransfer\" -- ".correct_path($fax_name).".pdf -c quit"); + $cmd = gs_cmd("-q -r".$gs_r." -g".$gs_g." -dBATCH -dPDFFitPage -dNOSAFER -dNOPAUSE -dBATCH -sOutputFile=".correct_path($fax_name).".tif -sDEVICE=tiffg4 -Ilib stocht.ps -c \"{ .75 gt { 1 } { 0 } ifelse} settransfer\" -- ".correct_path($fax_name).".pdf -c quit"); // echo($cmd . "
\n"); exec($cmd); @unlink($dir_fax_temp.'/'.$fax_name.'.pdf'); @@ -632,7 +632,7 @@ if (!function_exists('fax_split_dtmf')) { if (file_exists($dir_fax_temp.'/'.$fax_instance_uuid.'_cover.pdf')) { chdir($dir_fax_temp); - $cmd = gs_cmd("-q -sDEVICE=tiffg32d -r".$gs_r." -g".$gs_g." -dBATCH -dPDFFitPage -dNOPAUSE -sOutputFile=".correct_path($fax_instance_uuid)."_cover.tif -- ".correct_path($fax_instance_uuid)."_cover.pdf -c quit"); + $cmd = gs_cmd("-q -sDEVICE=tiffg32d -r".$gs_r." -g".$gs_g." -dBATCH -dPDFFitPage -dNOSAFER -dNOPAUSE -sOutputFile=".correct_path($fax_instance_uuid)."_cover.tif -- ".correct_path($fax_instance_uuid)."_cover.pdf -c quit"); // echo($cmd . "
\n"); exec($cmd); if (is_array($tif_files) && sizeof($tif_files) > 0) {