mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Changed to maintain compatibility with newer version of ghost script.
Credit to demonspork for this fix.
This commit is contained in:
@@ -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 . "<br/>\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 . "<br/>\n");
|
||||
exec($cmd);
|
||||
if (is_array($tif_files) && sizeof($tif_files) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user