Pdf/Filter/Compression.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Version
- $Id: Compression.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Pdf_Filter_Compression
Package: Zend\Pdf
ASCII85 stream filter
- Implements
- \Zend_Pdf_Filter_Interface
- Children
- \Zend_Pdf_Filter_Compression_Flate
- \Zend_Pdf_Filter_Compression_Lzw
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods


_applyDecodeParams(string $data, array $params) : string
static
Convert stream data according to the filter params set after decoding.
Parameters
Returns
Name | Type | Description |
---|---|---|
$data | string | |
$params | array |
Type | Description |
---|---|
string |


_applyEncodeParams(string $data, array $params) : string
static
Convert stream data according to the filter params set before encoding.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$data | string | |
$params | array |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Pdf_Exception |


_getBitsPerComponentValue(array $params) : integer
static
Get BitsPerComponent decode param value
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
integer |
Exception | Description |
---|---|
\Zend_Pdf_Exception |


_getColorsValue(array $params) : integer
static
Get Colors decode param value
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
integer |
Exception | Description |
---|---|
\Zend_Pdf_Exception |


_getColumnsValue(array $params) : integer
static
Get Columns decode param value
Parameters
Returns
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
integer |


_getPredictorValue(array $params) : integer
static
Get Predictor decode param value
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
integer |
Exception | Description |
---|---|
\Zend_Pdf_Exception |


_paeth(integer $a, integer $b, integer $c) : integer
static
Paeth prediction function
Parameters
Returns
Name | Type | Description |
---|---|---|
$a | integer | |
$b | integer | |
$c | integer |
Type | Description |
---|---|
integer |


decode(string $data, array $params = null) : string
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$data | string | |
$params | array |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Pdf_Exception |


encode(string $data, array $params = null) : string
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$data | string | |
$params | array |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Pdf_Exception |