문제

I'm working on a document manager on a shared hosting account (linux) which I don't have command-line access too.

When people upload presentations I need to convert them to PDF for people to download. I have read that there is a way to do this by installing headless open office but I'm not going to be able do that on this server.

Are there any free php libraries that can manage the document conversion?

Cheers!

도움이 되었습니까?

해결책

Are there any free php libraries that can manage the document conversion?

I don't think so. This is way too complex a task for a PHP script. The script would have to emulate what OpenOffice already does. Headless Open Office is indeed the way to go here.

If you're willing to rely on a third party service, and pay money, I've seen some conversion services around that offer the functions of OpenOffice through a web service.

다른 팁

I'll echo the sentiments of others (this is asking a bit much of PHP), however, you might be able to work around shared hosting issue but relying on a third-party server to do the conversion for you. Install Open Office (and any other software you need) on another server and set up an API that will accept an incoming ppt and return the converted pdf. Perhaps not what you're looking for, but it's a functional work-around.

Disclaimer: I am not the least bit familiar w/any of these.

  1. Convert ppt to pdf in php linux
  2. Write code to read in PPT using PHPPowerpoint and output it using TCPDF
  3. Look at this SO discussion openoffice document (odt) to PDF with commad line on Linux?
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top