在PHP中将PDF文档转换为预览图像,而无需安装Ghostscript
This has been asked before but the answer is always to use ghost script. This isn't available on hosts using cpanel. Is it possible to do without ghostscript extension installed?
这已被问过,但答案总是使用ghost脚本。这在使用cpanel的主机上不可用。是否可以不安装ghostscript扩展?
Thanks
谢谢
4 个解决方案
#1
1
Just a quick suggestion for those considering using an external service to achieve this: now, some APIs allow to upload documents and retrieve their related info, thumbnail, etc.
对于那些考虑使用外部服务来实现这一点的人来说,只是一个快速建议:现在,一些API允许上传文档并检索相关信息,缩略图等。
For instance see Cloudinary (which offers a free plan) : https://cloudinary.com/blog/uploading_converting_and_generating_thumbnails_for_pdf_documents
例如,请参阅Cloudinary(提供免费计划):https://cloudinary.com/blog/uploading_converting_and_generating_thumbnails_for_pdf_documents