class final Core · roukmoute/pdf 0.6.2

PDF\Syntax\DataStructure\TextString
Immutable application text with an explicit encoding object (ISO_32000-2_sponsored_EC3.pdf, 7.9.2.2.1, PDF pp. 131–132).

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\StringObject\LiteralString

Interfaces : PDF\Document\VersionedComponent, PDF\Syntax\FileStructure\BasicType, Stringable

Construction

__construct()

public function __construct(string $text, PDF\Syntax\DataStructure\TextStringEncoding $encoding = new PdfDocOrUtf16TextStringEncoding())

Declared by PDF\Syntax\DataStructure\TextString · View the code ↗

Declared methods

validateVersion()

public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): void

Declared by PDF\Syntax\DataStructure\TextString · View the code ↗

Inherited methods

2 methods from parents and contracts

__toString()

public function __toString(): string

Declared by PDF\Syntax\Object\StringType · View the code ↗

toPdf()

public function toPdf(PDF\Serialization\SerializationContext $context): string

Declared by PDF\Syntax\Object\StringObject\LiteralString · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly PDF\Syntax\DataStructure\TextStringEncoding $encodingPDF\Syntax\DataStructure\TextString
public readonly string $textPDF\Syntax\DataStructure\TextString
public readonly string $valuePDF\Syntax\Object\StringType