Skip to content

ScriptFiles ​

php
final readonly class PPTXenigma\ScriptFiles

Writes the script of each speaker in a file of a directory, named after the speaker.

Source: src/ScriptFiles.php

Methods ​

write() ​

php
public function write(VoiceOvers $voiceOvers, ScriptOptions $scriptOptions, string $directory, string $format): array
ParameterDescription
$format"text", "html" or "pdf"

Returns list<string> the paths of the files that were written

Throws MissingDependencyException when a PDF is asked and dompdf is not installed

Throws RuntimeException when the directory or a file cannot be written

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