【问题标题】:How would you create a thumbnail of the first page of a pdf using php but not using ghostwrite and imagemagick您将如何使用 php 但不使用 ghostwrite 和 imagemagick 创建 pdf 第一页的缩略图
【发布时间】:2011-07-09 12:43:45
【问题描述】:

您将如何使用 php 而不是使用 ghostwrite 和 imagemagick 创建 pdf 第一页的缩略图。我对客户端服务器有限制,因为提供商不允许安装任何东西。

【问题讨论】:

    标签: php pdf imagemagick jpeg


    【解决方案1】:

    我想到了两个选项:

    将 pdf 发布到另一个服务器上运行的脚本,该服务器确实有一个 PDF 阅读库,在那里进行处理,并在响应中返回图像。

    另一个想法是上传一个静态编译的 ghostscript 副本并将其上传到 webhost 并使用 system() 调用它。虽然主机可能不会为您安装和支持软件,但静态编译的二进制文件在这些情况下对我有用。

    【讨论】:

    • 感谢您的回复,请问哪里可以下载ghostscript的静态版本?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-27
    • 2013-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-17
    相关资源
    最近更新 更多