Skip to content

Extracts ​

php
final readonly class PPTXenigma\Extracts

Extracts the voice-over texts written in the notes of a presentation.

In a note, a voice-over starts with a line that begins with the sign, then the speaker between parentheses, then the reference. It ends at the next line that begins with the sign:

¤ VOICE OVER (Narrator) intro_01
The text of the voice-over.
¤ VOICE OVER END

Source: src/Extracts.php

Methods ​

__construct() ​

php
public function __construct(string $path, Options $options = new Options())

extract() ​

php
public function extract(): VoiceOvers

Without a sign in the options, the sign is the text of the first notes of the presentation, which are not searched for voice-overs.

Throws InvalidArgumentException when the file is not a PowerPoint 2007+ presentation

Throws ExtractionException when the sign cannot be found, a reference is used twice (unless the options keep one of them) or a voice-over is not closed

Documentation of 1.0.0 , built from 5dd2e99 on 1.0.0 by pipeline #37507528046 on 2026-10-06.