Appearance
Script
php
final readonly class PPTXenigma\Script implements CountableThe 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())| Parameter | Description |
|---|---|
$voiceOvers | the voice-overs of the speaker, in the order of the slides |
count()
php
public function count(): inttoHtml()
php
public function toHtml(): stringtoPdf()
php
public function toPdf(): stringThrows MissingDependencyException when the package dompdf is not installed
toText()
php
public function toText(): stringwordCount()
php
public function wordCount(): intThe number of words of the voice-overs, without the marks of the styles.