Skip to content

Script ​

php
final readonly class PPTXenigma\Script implements Countable

The voice-overs of one speaker, written as a document that can be sent to a voice actor: as text, as HTML or as a PDF. The HTML and the PDF keep the formatting of the notes.

Source: src/Script.php

Methods ​

__construct() ​

php
public function __construct(string $speaker, array $voiceOvers, ScriptOptions $scriptOptions = new ScriptOptions())
ParameterDescription
$voiceOversthe voice-overs of the speaker, in the order of the slides

count() ​

php
public function count(): int

toHtml() ​

php
public function toHtml(): string

toPdf() ​

php
public function toPdf(): string

Throws MissingDependencyException when the package dompdf is not installed

toText() ​

php
public function toText(): string

wordCount() ​

php
public function wordCount(): int

The number of words of the voice-overs, without the marks of the styles.

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