class readonly Core · roukmoute/pdf 0.6.2

PDF\Syntax\ContentStreamsResources\ContentStreams
Ordered object instructions; not an indirect object or stream dictionary.

A StreamObject owns these bytes. Operator contexts follow ISO 32000-1,
Figure 9; resource resolution and colour-space component counts are external.

@implements \IteratorAggregate<int, Operator>
@phpstan-consistent-constructor

Read the source declaration ↗

Inheritance and contracts

Interfaces : Countable, IteratorAggregate, Stringable, Traversable

2 directly derived types

Construction

__construct()

public function __construct(PDF\Syntax\ContentStreamsResources\Operator ...$operators)

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

Declared methods

__toString()

public function __toString(): string

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

count()

public function count(): int

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

getIterator()

public function getIterator(): Traversable

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

isType3Glyph()

protected function isType3Glyph(): bool

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

toPdf()

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

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

validate()

public function validate(): void
Validate nesting and the state-dependent syntax before emitting bytes.

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

with()

public function with(PDF\Syntax\ContentStreamsResources\Operator ...$operators): static

Declared by PDF\Syntax\ContentStreamsResources\ContentStreams · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly array $operatorsPDF\Syntax\ContentStreamsResources\ContentStreams
@var list<Operator>