How to export PHP output into .PPT Format?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

How to export PHP output into .PPT Format?

Post by pcoder »

Hi,
How can i use PHP to create downloadable .PPT file from PHP output?
Thanks
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Simple answer is no idea but as no one has yet answered I'll throw something in. I have never come across this requirement. Powerpoint -> HTML converters are available but I cannot see/find anything to go the other way round. I think I am right in saying that the latest version of MS Office including Powerpoint use the "OpenXML" format and you may want to look from this angle. Rather than producing HTML produce the Open XML required.

The question is why are you converting it to Powerpoint. Could you convert it to PDF instead ? PDF is far more supported and is accessible for far more people when downloading.
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Post by pcoder »

Thanks for the quick response.
Actually , the client wants to use it directly for presentation.They don't want to do further processing to convert pdf(or any) document to powerpoint.
Anyway thanks again.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

PPT is a proprietary Microsoft format that they keep very secret indeed. Creating a new powerpoint slide show with PHP is possible using a COM interface to the application (eg http://www.whenpenguinsattack.com/2007/ ... -with-php/ ) but it'll be a lot of work and it'll only work on a Windows server, plus you'll need Powerpoint installed on said server. Frankly it sounds like a pretty daft idea to me.
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Post by pcoder »

Thanks onion2k
I read this article.
Is there any function link TypeText in word to write some text in Powerpoint.
Thanks
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I've no idea. I suggest you use Google to find a Powerpoint API reference. Like I said, it's going to be a lot of work, and it won't work when you put the site online if you're using a Unix or Linux web host.
Post Reply