class final readonly Optional · pdftoolkit/pdf-reader 0.8.1

PDF\Reading\StreamDecoder
Explicit stream decoding; encoded stream objects retain their original bytes.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Reading\ReaderLimits $limits = new ReaderLimits(), ?PDF\Reading\ExternalStreamSource $externalStreams = null, ?PDF\Reading\ImageCodecs\Decoder $imageDecoder = null, PDF\Reading\ImageCodecs\ImageLimits $imageLimits = new ImageLimits(), bool $allowImageCodecs = true)

Declared by PDF\Reading\StreamDecoder · View the code ↗

Declared methods

decode()

public function decode(PDF\Reading\EncodedStream $stream, PDF\Reading\ReadBudget $budget, ?PDF\Reading\ObjectResolver $resolver = null): string

Declared by PDF\Reading\StreamDecoder · View the code ↗

decodeResult()

@internal Preserve image metadata for ReadDocument's shared decoding cache.

Declared by PDF\Reading\StreamDecoder · View the code ↗

imageBytes()

public function imageBytes(PDF\Reading\ImageCodecs\DecodedImage $image): string

Declared by PDF\Reading\StreamDecoder · View the code ↗