Class Zend_Pdf_Cmap_ByteEncoding

Description

Implements the "byte encoding" character map (type 0).

This is the (legacy) Apple standard encoding mechanism and provides coverage for characters in the Mac Roman character set only. Consequently, this cmap type should be used only as a last resort.

The mapping from Mac Roman to Unicode can be found at http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/ROMAN.TXT.

  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Pdf/Cmap/ByteEncoding.php (line 40)

Zend_Pdf_Cmap
   |
   --Zend_Pdf_Cmap_ByteEncoding
Direct descendents
Class Description
 class Zend_Pdf_Cmap_ByteEncoding_Static Custom cmap type used for the Adobe Standard 14 PDF fonts.
Variable Summary
Method Summary
 Zend_Pdf_Cmap_ByteEncoding __construct (string $cmapData)
 integer glyphNumberForCharacter (integer $characterCode)
 array glyphNumbersForCharacters (array $characterCodes)
Variables
array $_glyphIndexArray = array() (line 50)

Glyph index array. Stores the actual glyph numbers. The array keys are the translated Unicode code points.

  • access: protected
Methods
Constructor __construct (line 129)

Object constructor

Parses the raw binary table data. Throws an exception if the table is malformed.

  • access: public
  • throws: Zend_Pdf_Exception
Zend_Pdf_Cmap_ByteEncoding __construct (string $cmapData)
  • string $cmapData: Raw binary cmap table data.

Redefinition of:
Zend_Pdf_Cmap::__construct()
Object constructor

Redefined in descendants as:
getCoveredCharacters (line 112)

Returns an array containing the Unicode characters that have entries in this character map.

  • return: Unicode character codes.
  • access: public
array getCoveredCharacters ()

Redefinition of:
Zend_Pdf_Cmap::getCoveredCharacters()
Returns an array containing the Unicode characters that have entries in this character map.
glyphNumberForCharacter (line 98)

Returns the glyph number corresponding to the Unicode character.

If a particular character doesn't exist in this font, the special 'missing character glyph' will be substituted.

See also glyphNumbersForCharacters() which is optimized for bulk operations.

  • return: Glyph number.
  • access: public
integer glyphNumberForCharacter (integer $characterCode)
  • integer $characterCode: Unicode character code (code point).

Redefinition of:
Zend_Pdf_Cmap::glyphNumberForCharacter()
Returns the glyph number corresponding to the Unicode character.
glyphNumbersForCharacters (line 70)

Returns an array of glyph numbers corresponding to the Unicode characters.

If a particular character doesn't exist in this font, the special 'missing character glyph' will be substituted.

See also glyphNumberForCharacter().

  • return: Array of glyph numbers.
  • access: public
array glyphNumbersForCharacters (array $characterCodes)
  • array $characterCodes: Array of Unicode character codes (code points).

Redefinition of:
Zend_Pdf_Cmap::glyphNumbersForCharacters()
Returns an array of glyph numbers corresponding to the Unicode characters.

Inherited Methods

Inherited From Zend_Pdf_Cmap

 Zend_Pdf_Cmap::__construct()
 Zend_Pdf_Cmap::cmapWithTypeData()
 Zend_Pdf_Cmap::getCoveredCharacters()
 Zend_Pdf_Cmap::glyphNumberForCharacter()
 Zend_Pdf_Cmap::glyphNumbersForCharacters()
 Zend_Pdf_Cmap::_extractInt2()
 Zend_Pdf_Cmap::_extractUInt2()
 Zend_Pdf_Cmap::_extractUInt4()
Class Constants

Documentation generated on Thu, 18 Jan 2007 09:52:21 -0800 by phpDocumentor 1.3.1