Documentation

Flate
in package
implements FilterInterface

Pdf extract flate filter class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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
throws
Exception
Return values
string

applyPredictor()

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
throws
Exception
Return values
string

applyTiffPredictor()

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
string

paeth()

Compute the PNG Paeth predictor value

protected paeth(int $a, int $b, int $c) : int
Parameters
$a : int
$b : int
$c : int
Return values
int

        
On this page

Search results