Office PowerPoint Macro
The Office PowerPoint macro is going away in a future release
Read more about this change or find out about a better way to insert and preview PowerPoint files.
The Office PowerPoint macro displays the content of a PowerPoint presentation on a wiki page. First attach the presentation to a Confluence page, then use the macro to display the content. When viewing the page, people will see the content of the presentation, without needing to have Office installed.
For details, see the View File Macro.
Code examples
The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page.
Macro name: viewppt
Macro body: None.
Parameter name | Required | Default | Parameter description and accepted values |
---|---|---|---|
name | Yes | (None.) | The file name of the PowerPoint presentation to be displayed. The document must be attached to a page on your Confluence site. |
page | No | The page containing the macro | The name of a Confluence page to which the PowerPoint presentation is attached. |
height | No | The height of the macro display, specified in pixels (for example: 10px , or just 10 ) or as a percentage (for example: 20% ) of the window's height. | |
width | No | The width of the macro display, specified in pixels (for example: 10px , or just 10 ) or as a percentage (for example: 20% ) of the window's height. | |
slide | No | All slides, starting with the first, as a slide show | The number of the slide that you want displayed on the Confluence page, where the first slide is numbered zero. Instead of a slide show, the page will display just the single slide, represented as a JPEG image. |
Storage format example
<ac:structured-macro ac:name="viewppt">
<ac:parameter ac:name="height">250</ac:parameter>
<ac:parameter ac:name="width">250</ac:parameter>
<ac:parameter ac:name="name">
<ri:attachment ri:filename="101_samplepresentation.pptx"/>
</ac:parameter>
</ac:structured-macro>
Wiki markup example
{viewppt:height=20%|page=Docs|width=20%|name=My document.ppt|slide=4}