|
static | encode ($data, $params=null) |
|
static | decode ($data, $params=null) |
|
Definition at line 33 of file AsciiHex.php.
◆ decode()
static decode |
( |
|
$data, |
|
|
|
$params = null |
|
) |
| |
|
static |
Decode data
- Parameters
-
- Returns
- string
- Exceptions
-
Implements Zend_Pdf_Filter_Interface.
Definition at line 56 of file AsciiHex.php.
66 if ($charCode == 0x0A || $charCode == 0x0D ) {
95 if ($charCode >= 0x30 && $charCode <= 0x39 ) {
96 $code = $charCode - 0x30;
97 }
else if ($charCode >= 0x41 && $charCode <= 0x46 ) {
98 $code = $charCode - 0x37;
99 }
else if ($charCode >= 0x61 && $charCode <= 0x66 ) {
100 $code = $charCode - 0x57;
102 #require_once 'Zend/Pdf/Exception.php'; 109 $hexCodeHigh =
$code;
116 $oddCode = !$oddCode;
124 #require_once 'Zend/Pdf/Exception.php'; 130 $output .= chr($hexCodeHigh*16);
◆ encode()
static encode |
( |
|
$data, |
|
|
|
$params = null |
|
) |
| |
|
static |
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Filter/AsciiHex.php