Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript interaction with PowerPoint documents

I have a task pane add-in for PowerPoint in mind that can help users with tasks on the active presentation. With Microsoft Office becoming more and more popular on platforms besides Windows using the JavaScript API would make a great portable implementation. There are a number of COM add-ins doing things like these via the PowerPoint object model:

  • Get the color of a selected shape and apply to another
  • Change position of shapes to align them
  • Copy one or more shapes from a slide in a presentation to another
  • Upload a selected image to a web service
  • Insert a slide downloaded from a web service

After going through the JavaScript API documentation it seems like these things are impossible at the moment. getFileAsync sounds remotely promising but does not help in the end. getSelectedDataAsync only returns text or titles and IDs for slides. So this isn't a solution either.

Is it correct that for the tasks above I am currently out of luck with the available JavaScript API for PowerPoint? I.e. I will need to wait for a more comprehensive API to become available (like the APIs for Word and Excel)? Anyone knows if Microsoft has something in the works here?

like image 564
Paul B. Avatar asked Mar 02 '16 10:03

Paul B.


People also ask

Can you use JavaScript in PowerPoint?

A PowerPoint add-in can insert slides from one presentation into the current presentation by using PowerPoint's application-specific JavaScript library.

Can you make PowerPoint presentations interactive?

Without making major adjustments to your existing slides, you can create engaging and interactive PowerPoints that your audience will love. From hyperlinks to annotations there is a tip for every teacher to use to transform their presentation.

Can you use code in PowerPoint?

Simply write your code in an editor which supports copying code with formatting (e.g. as RTF), such as WordPad, Visual Studio, TextMate and Notepad++. You can then copy the code directly into Powerpoint, preserving the formatting and syntax highlighting.


1 Answers

Right now the Office extensibility team has been investing heavily in Excel and Word JavaScript APIs, the PPT API will also be available in the near future, but I cannot disclose any specific date. Stay tuned!!!

like image 121
Juan Balmori Avatar answered Dec 28 '22 07:12

Juan Balmori