class final readonly Core · roukmoute/pdf 0.6.2

PDF\Document\Structure\PageContentFragment
A typed fragment can cross scopes only while attached to its complete, validated page sequence.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\ContentStreamsResources\ContentStreams

Interfaces : Countable, IteratorAggregate, Stringable, Traversable

Construction

__construct()

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

Declared by PDF\Document\Structure\PageContentFragment · View the code ↗

Declared methods

attachTo()

public function attachTo(PDF\Document\Structure\PageContentSequence $sequence, PDF\Syntax\Object\IntegerType $part): void
@internal Attach through PageContentSequence.

Declared by PDF\Document\Structure\PageContentFragment · View the code ↗

validate()

public function validate(): void

Declared by PDF\Document\Structure\PageContentFragment · View the code ↗

with()

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

Declared by PDF\Document\Structure\PageContentFragment · View the code ↗

Inherited methods

5 methods from parents and contracts

__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 ↗

Properties

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