Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed Powerpoint viewer on a web page (PHP)

I am building a PHP application where the user upload Powerpoint files. I want the other users to view it online instead of downloading. (Using a third party apps like google docs might be a little cumbersome for the users) Is it possible to write a powerpoint viewer code in PHP?

like image 650
thinzar00 Avatar asked Jun 29 '10 04:06

thinzar00


2 Answers

You could automate the process of using google docs with php.

Google provides a ppt viewer that can be embed into webpages using the following code

<iframe src="http://docs.google.com/gview?url=http://www.domainname.come/presentation.ppt&embedded=true" style="width:550px; height:450px;" frameborder="0"></iframe>

Now im assuming php handles the uploads your users make, thus it would be easy to find the url to the specific ppt file. You could store this url either in a variable or a database, fetch it when needed and place it in the code above.

I hope I have been able to explain the logic im trying to apply, do let me know if you need more specifications.

like image 67
TDsouza Avatar answered Oct 18 '22 14:10

TDsouza


I suspect it would be much easier to reduce the powerpoint slides to .PNG files, and build a simple PHP script to cycle through the images.

like image 31
Ira Baxter Avatar answered Oct 18 '22 15:10

Ira Baxter