【发布时间】:2011-04-19 11:42:25
【问题描述】:
我想使用 Imagemagick php API 将 .pdf 文件转换为 .png 文件。
我们可以在 shell 中使用这个:
$convert sample.pdf sample_image.png
我们可以使用 php exec() 函数发出此命令,但由于某种原因(安全),我禁用了使用 php 执行 shell 命令。
所以现在告诉我如何在不使用 php exec() 函数的情况下将我的 .pdf 文件转换为 .png 文件的解决方案?
关于这个here还有另一个讨论,但不是很清楚。
【问题讨论】:
标签: php imagemagick imagick