php - 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);
任何类型的帮助将不胜感激。
解决方案
推荐阅读
- c# - 如何找到以另一个控件 UWP 8.1 的样式定义的控件
- tomcat - 检查Tomcat版本的命令
- php - 如何防止用户在动态密码更改后未经身份验证
- c# - 根据列表中的父 ID 对列表排序
- excel - 从网站上抓取特定 jquery 数据的数据
- python - Python多线程和多处理加速循环
- c# - 试图减去 DateTime “System.FormatException: String '12/9/2019 12:00:00 AM' 未被识别为有效的 DateTime。”
- matlab - Matlab中的转置复杂度Big O是多少?
- java - 如何修复列表视图中的搜索栏功能?
- react-native - useSelector into function throws error hooks 只能在函数组件的主体内部调用