Facebook has a nice way to preview powerpoint files.. It goes to a microsoft link, e.g. link. You can browse the presentation etc, all very nice and useful for the user and Facebook.
However, I cannot find any sort of API doing that with microsoft.
I found this blog post, which is kindof what I want, but its not referencing any API that I can use to produce this programmatically.
I have a website which users can store files (also powerpoint presentations) and would like them to be able to preview it.
Has anyone got any experience with this? Preferably not going through microsoft route (if possible)..
PowerPoint JavaScript API: The PowerPoint JavaScript API provides strongly-typed objects that you can use to access objects in PowerPoint.
Office 365 Management APIs overview Provides a single extensibility platform for all Office 365 customers' and partners' management tasks, including service communications, security, compliance, reporting, and auditing.
Using PowerPoint in a web browser lets you create and share create and share basic presentations. You can work simultaneously with others and present your slide show from anywhere. But web-based PowerPoint doesn't include all the features that desktop PowerPoint does.
REST is an architectural style which is based on web-standards and the HTTP protocol. In a REST based architecture everything is a Resource. A resource is accessed via a common interface based on the HTTP standard methods.
Assuming your Powerpoint is hosted on your website and is publicly accessible, all you have to do is prepend it in this way http://view.officeapps.live.com/op/view.aspx?src=<Document Location>
. Here's an example.
This works with ANY office document type including PDF!
https://blogs.office.com/2013/04/10/office-web-viewer-view-office-documents-in-a-browser/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With