7
* This source file is subject to the new BSD license that is bundled
8
* with this package in the file LICENSE.txt.
9
* It is also available through the world-wide-web at this URL:
10
* http://framework.zend.com/license/new-bsd
11
* If you did not receive a copy of the license and are unable to
12
* obtain it through the world-wide-web, please send an email
13
* to license@zend.com so we can send you a copy immediately.
17
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
21
/** Zend_Pdf_Cmap_ByteEncoding */
22
require_once 'Zend/Pdf/Cmap/ByteEncoding.php';
26
* Custom cmap type used for the Adobe Standard 14 PDF fonts.
28
* Just like {@link Zend_Pdf_Cmap_ByteEncoding} except that the constructor
29
* takes a predefined array of glyph numbers and can cover any Unicode character.
33
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
34
* @license http://framework.zend.com/license/new-bsd New BSD License
36
class Zend_Pdf_Cmap_ByteEncoding_Static extends Zend_Pdf_Cmap_ByteEncoding
38
/**** Public Interface ****/
41
/* Object Lifecycle */
46
* @param array $cmapData Array whose keys are Unicode character codes and
47
* values are glyph numbers.
48
* @throws Zend_Pdf_Exception
50
public function __construct($cmapData)
52
if (! is_array($cmapData)) {
53
throw new Zend_Pdf_Exception('Constructor parameter must be an array',
54
Zend_Pdf_Exception::BAD_PARAMETER_TYPE);
56
$this->_glyphIndexArray = $cmapData;