Solved

Create PowerPoint Presentation from PHP script?

Posted on 2006-12-02
5
2,876 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:John Kawakami
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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.

738 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