Appearance
Extracts
php
final readonly class PPTXenigma\ExtractsExtracts 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(): VoiceOversWithout 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