Create Presentation Content
Use the PPT API to create MATLAB programs to add content to PowerPoint presentations and to create complete PowerPoint presentations. You can create a program that works with the slide master and layouts in a PowerPoint presentation. To get started, see Create a Presentation Generator.
To share your completed presentation program with others who do not have MATLAB installed on their systems, see Create a Standalone Application from a Presentation Program.
Functions
open | Open presentation |
close | Close presentation |
getMasterNames | Get names of slide masters for presentation |
getLayoutNames | Get names of layouts for presentation slide master |
getTableStyleNames | Get table style names for presentation |
add | Add slide to presentation |
replace | Replace text, tables, or pictures in presentation |
mlreportgen.ppt.Presentation.createTemplate | Create copy of PPT API default presentation template (Since R2021a) |
pptview | Open Microsoft PowerPoint presentation or convert it to PDF |
Classes
Topics
- Create a Presentation Generator
Create a MATLAB program to generate a PowerPoint presentation.
- Create PPT Objects
The PPT API consists of a hierarchical set of data structures, known as objects, that represent a presentation and its contents.
- Import the PPT API namespace
All PPT class names and constructor names have the prefix
mlreportgen.ppt
. - Get and Set PPT Object Properties
Most PPT objects have properties that describe the object.
- Create a Presentation Object to Hold Content
Every PPT API program must create an
mlreportgen.ppt.Presentation
object to hold presentation content. - Generate a Presentation
To generate a PowerPoint presentation from your PPT API program, use the API to close the presentation.
- Display Presentation Generation Messages
The PPT API can display messages when you generate a PowerPoint presentation.
- Create a Standalone Application from a Presentation Program
Enable sharing of PPT API programs with users who do not have MATLAB installed.