Insert file
Embed a file (an Excel sheet, a PDF, any file) on a slide as an icon that opens it when double-clicked in the slide show or editor.
Command in the PowerPoint desktop toolkit · id ooa.powerpoint_desktop/insert_file · 12 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Presentation (.pptx, .pptm, .ppt). | |
| Slide | Number | No | 1 | Slide number, 1 for the first. |
| File | File | Yes | File to embed. | |
| Label | String | No | Text under the icon; the file name when empty. | |
| Left | Number | No | In points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty. | |
| Top | Number | No | In points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty. | |
| Width | Number | No | In points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty. | |
| Height | Number | No | In points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty. | |
| Save | Boolean | No | true | Save the presentation in place afterwards (when save_as is empty). |
| Save as | File | No | Save to this file instead of the opened one. | |
| Overwrite | Boolean | No | true | Replace save_as when it exists; false stops with POWERPOINT_DESKTOP.EXISTS. |
| Timeout (seconds) | Number | No | 300 | Maximum run time. |
Outputs
| Output | Type | What it is |
|---|---|---|
| shape | String | Name of the new shape on the slide. |
| position | Dictionary | left, top, width and height of the shape in points. |