Read and Inspect PowerPoint Decks
Edit on GitHubOpen existing presentations, enumerate slides and shapes, inspect notes and layouts, and summarize a deck before changing it.
Use the PowerPoint read surface to inventory a deck before modification, build a presentation catalog, extract speaker notes, or verify that a generated deck has the expected structure.
Inspect slide by slide
$presentation = Open-OfficePowerPoint -Path '.\Briefing.pptx'
try {
Get-OfficePowerPointSlide -Document $presentation -Summary
foreach ($slide in (Get-OfficePowerPointSlide -Document $presentation)) {
Get-OfficePowerPointShape -Slide $slide
Get-OfficePowerPointNotes -Slide $slide
}
} finally {
Close-OfficePowerPoint -Document $presentation
}
The inspection family covers slides, shapes, placeholders, notes, themes, layouts, sections, transitions, charts, tables, and presentation metadata. Start with a summary, then query the structures relevant to the job.
The inspect-deck recipe creates a representative deck and reports title, shape, and note counts per slide.