[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2908
  • Last Modified:

Create PowerPoint Presentation from PHP script?

Is there an API for MS PowerPoint that would allow me to create a PP presentation from PHP code?
0
tradeline
Asked:
tradeline
1 Solution
 
Raynard7Commented:
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
 
tradelineAuthor Commented:
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
 
John KawakamiCommented:
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now