Flate
in package
implements
FilterInterface
Pdf extract flate filter class
Tags
Table of Contents
Interfaces
- FilterInterface
- Pdf extract filter interface
Constants
- MAX_DECODED_LENGTH = 67108864
- Maximum decoded stream size in bytes
Methods
- decode() : string
- Decode a FlateDecode stream, applying a PNG/TIFF predictor if specified
- applyPredictor() : string
- Apply the PNG (per-row) or TIFF predictor to decoded stream data
- applyTiffPredictor() : string
- Apply the TIFF (horizontal differencing) predictor to decoded stream data
- paeth() : int
- Compute the PNG Paeth predictor value
Constants
MAX_DECODED_LENGTH
Maximum decoded stream size in bytes
protected
mixed
MAX_DECODED_LENGTH
= 67108864
Methods
decode()
Decode a FlateDecode stream, applying a PNG/TIFF predictor if specified
public
decode(string $data[, array<string|int, mixed> $params = [] ]) : string
Parameters
- $data : string
- $params : array<string|int, mixed> = []
Tags
Return values
stringapplyPredictor()
Apply the PNG (per-row) or TIFF predictor to decoded stream data
protected
applyPredictor(string $data, array<string|int, mixed> $params) : string
Parameters
- $data : string
- $params : array<string|int, mixed>
Tags
Return values
stringapplyTiffPredictor()
Apply the TIFF (horizontal differencing) predictor to decoded stream data
protected
applyTiffPredictor(string $data, int $columns, int $colors, int $bpc) : string
Parameters
- $data : string
- $columns : int
- $colors : int
- $bpc : int
Return values
stringpaeth()
Compute the PNG Paeth predictor value
protected
paeth(int $a, int $b, int $c) : int
Parameters
- $a : int
- $b : int
- $c : int