Inkscape导出为PDF无法创建PDF文件

时间:2014-03-12 19:16:26

标签: php linux macos mamp inkscape

我正在运行以下PHP代码行,让Inkscape从SVG创建PDF。

$command = 'inkscape -z -f ' . $temp_destination . ' -A ' . $temp_pdf . ' -T';
exec($command, $output, $return_var);

如果没有创建PDF文件,则运行此操作。那么我尝试在PHP运行的用户下运行终端中的相同命令(_www I' m using MAMP PRO)

sudo -u _www inkscape -z -f /path/to/tmp.svg -A /path/to/tmp.pdf -T

...我在下面收到了很多这些错误,即使现在创建了PDF。

error retrieving current directory: getcwd: cannot access parent directories: Permission denied

如何让此命令能够创建PDF文件?

0 个答案:

没有答案
相关问题