首页 > 解决方案 > Pdf Mrged文件shell_exec()不工作aws服务器

问题描述

Pdf 合并文件shell_exec()在 AWS 服务器上不起作用。缺少任何安装文件。指导我或任何解决方案。

我的代码:

$cmd = "gs -q -SDEVICE=pdfwrite -dFirstPage=1 -dLastPage=1 -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFFitPage -sOutputFile=$outputTiffFileName -dNOPAUSE -dBATCH ";

//Add each pdf file to the end of the command
foreach($fileArray as $file)
{
    $cmd .= $file." ";
}
 
//Execute the ghost script that merges multiple PDFs and saves the it in the data directory.
$response = shell_exec($cmd);

任何类型的帮助将不胜感激。

标签: phpamazon-web-services

解决方案


推荐阅读