Skip to content

How can I insert a slide with insertSlidesFromBase64(base64File, options) into the current presentation? #833

Description

Hi,

I am experimenting with the JavaScript APIs in beta/preview for a MS PowerPoint Add-in. What I want to achieve is to insert a new slide from a base64-encoded .pttx file into the current document.

I would expect that this is possible with the insertSlidesFromBase64(base64File, options) method, which is documented here: PowerPoint API doc

I have included https://appsforoffice.microsoft.com/lib/beta/hosted/office.js in the Add-in

I am working on Mac OS 10.15.7

I have updated PowerPoint to the newest version in the Beta Channel. The PowerPoint Version is 16.44 (20111100).

Now, I am not quite sure if the beta API Methods are actually available in my environment. The bigger issue I am facing is that I don't know on which object I can call this method. I think the method should be available somewhere in the context of the current document/presentation?!?

I think a very simple example of how I can insert a "base64EncodedPptx" with insertSlidesFromBase64("base64EncodedPptx")
would probably clarify how this works.

Regards, Alex

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Labels

Area: PowerPointFeedback on PowerPoint contentStatus: fixedFix is complete and will be available to customers as soon as doc updates are publishedType: doc requestRequest for new documentation or updates/enhancements to existing documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions