I need to convert Powerpoint files to PNG in PHP. I can do the conversion with using COM in PHP but COM is only supported on Windows. I need to do this for both Windows and Linux.
I am wondering if someone give me hints about that conversion.
I can think of two solutions, a creative one and one that won't work (yet).
The creative one is to convert Powerpoint files to something a bit more Linux friendly, by calling OpenOffice's converters via the command line. And then convert to PNG. Creative, to say the least, and of course it requires that you can install OpenOffice on your server.
The other solution is the PHPPowerPoint library, currently in alpha. It only works with Microsoft's OpenXML format, and it's of a similar lineage as PHPExcel and PHPWord. I'm pretty sure that it doesn't utilize COM, but since it's still alpha and very recent it most probably won't do exactly what you want. But you can always build upon it.
Both approaches are highly problematic. But so is Powerpoint, so I guess you expected that when you asked.