Search code examples
phppowerpointjpeg

How to convert ppt slide to jpeg images in php


I saw some similar questions on this forum but all those were for .NET platform so please don't close it as duplicate. I have a linux system and I want to convert slide to images via php or shell script(less preferable). the convert command can convert pdf to jpg's but not a ppt.

Any help would be great.


Solution

  • I don't think thats possible. Using .NET would means that the user is creating an instance of a powerpoint application and asking it to print a specific slide to a JPG or PDF but in the case of PHP i don't think it could be possible from a linux system.

    In the event you can go on windows server, then you could use the COM interface of PHP to create a COM application and start an installed PowerPoint application and do the same thing as long as the COM component is exposing the necessary methods (probably PRINT())

    Good luck