Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesPresentation (.pptx, .pptm, .ppt).
SlideNumberNo1Slide number, 1 for the first.
FileFileYesFile to embed.
LabelStringNoText under the icon; the file name when empty.
LeftNumberNoIn points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty.
TopNumberNoIn points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty.
WidthNumberNoIn points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty.
HeightNumberNoIn points (72 per inch) from the slide's top-left corner; PowerPoint's own when empty.
SaveBooleanNotrueSave the presentation in place afterwards (when save_as is empty).
Save asFileNoSave to this file instead of the opened one.
OverwriteBooleanNotrueReplace save_as when it exists; false stops with POWERPOINT_DESKTOP.EXISTS.
Timeout (seconds)NumberNo300Maximum run time.

Outputs​

OutputTypeWhat it is
shapeStringName of the new shape on the slide.
positionDictionaryleft, top, width and height of the shape in points.