Solved

Create PowerPoint Presentation from PHP script?

Posted on 2006-12-02
5
2,870 Views
Last Modified: 2008-01-09
Is there an API for MS PowerPoint that would allow me to create a PP presentation from PHP code?
0
Comment
Question by:tradeline
5 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 500 total points
ID: 18059248
Hi,
Unfortunatley there is no code available to do this directly, microsoft makes this difficult - especially if you are operating on a non-windows operating system.  You may be able to shell out to a program that handles this for you with the appropriate dll calls (.NET projects would be particularly good for this)
For more information please see:
http:Q_21360046.html "Powerpoint and PHP integration"
0
 

Author Comment

by:tradeline
ID: 18060340
That's the terrible news I was expecting :(.  I'm running PHP on a Linux server.  I'd need to setup another script, running on a windows server, connect remotely to that script, have the script use COM to build the PowerPoint file and then let the user save it on their desktop?  Is this correct?

The only other way is to scrap the code and re-write it in .NET, or at least host the app on a windows box.

Thanks.
Scott.
0
 
LVL 8

Expert Comment

by:jk2001
ID: 18066128
You can use Copy-and-Paste to do the import.  Format the text as an <OL> or an <UL> or even using the H1 to H6 tags.  Copy the text to export, and then paste it into PPT's outline view.  (The outline tab on the left side.) PPT will try to parse your outline, translating the indentations into different heading levels, and styling them up.

If you really need to automate it, you can use some COM automation to load up your web page, and then copy and paste into PPT.

(If you're perfectionistic, I suppose you can learn PPTs xml format and get PHP to produce that as output.  Can't help you there.  http://msdn2.microsoft.com/en-us/library/ms406049.aspx  )
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question