更新时间:2023-01-18 13:47:43
服务器是Amazon EC2实例,因此在大多数情况下,它是唯一的CLI。
The server is an Amazon EC2 instance, so for the most part, its only CLI.
我所做的是:
我已经安装了 Libreoffice(无头)用于在PHP中使用 exec()
将文档转换为PDF。
I've installed Libreoffice (headless) for converting documents to PDF's using exec()
in PHP.
从那里我使用ghostscript(已安装在服务器上)通过使用 exec()
从生成的PDF中提取图像。
From there I use ghostscript (already installed on the server) to extract images from the generated PDF by using exec()
as well.