class final Core · roukmoute/pdf 0.6.2

PDF\Syntax\FileStructure\ObjectStream
A real object stream with byte offsets and generation-zero members (7.5.7).

The writer must reserve the member numbers before assigning other numbers,
and must exclude these members from standalone indirect-object output.
Encryption dictionaries and indirect stream-length objects must be excluded
by the document writer, which knows those relationships.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\StreamObject

Interfaces : PDF\Syntax\FileStructure\BasicType, Stringable

Construction

__construct()

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

Declared methods

bytes()

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

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

decodedBytes()

public function decodedBytes(PDF\Serialization\SerializationContext $context): string
The unencoded header and object bodies, with offsets measured in bytes.

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

dictionaryFor()

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

embeddedEntries()

public function embeddedEntries(): array
@return list<ObjectStreamEntry>

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

toPdf()

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

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

withFilters()

public function withFilters(PDF\Syntax\Filters\Filter ...$filters): self
Replace decoding filters, preserving the same object-valued members.

Declared by PDF\Syntax\FileStructure\ObjectStream · View the code ↗

Inherited methods

2 methods from parents and contracts

__toString()

public function __toString(): string

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

dictionary()

public function dictionary(): PDF\Syntax\Object\DictionaryType

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

Properties

DeclarationOrigin and documentation
public readonly PDF\Syntax\ContentStreamsResources\ContentStreams|string $dataPDF\Syntax\Object\StreamObject
public readonly array $filtersPDF\Syntax\Object\StreamObject
@var list<Filter>