Class Zend_Pdf_Cmap_TrimmedTable

Description

Implements the "trimmed table mapping" character map (type 6).

This table type is preferred over the Zend_Pdf_Cmap_SegmentToDelta table when the Unicode characters covered by the font fall into a single contiguous range.

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

Located in /Zend/Pdf/Cmap/TrimmedTable.php (line 37)

Zend_Pdf_Cmap
   |
   --Zend_Pdf_Cmap_TrimmedTable
Variable Summary
 integer $_endCode
 integer $_startCode
Method Summary
 Zend_Pdf_Cmap_TrimmedTable __construct (string $cmapData)
 integer glyphNumberForCharacter (integer $characterCode)
 array glyphNumbersForCharacters (array $characterCodes)
Variables
integer $_endCode = 0 (line 52)

The ending character code covered by this table.

  • access: protected
array $_glyphIndexArray = array() (line 58)

Glyph index array. Stores the actual glyph numbers.

  • access: protected
integer $_startCode = 0 (line 46)

The starting character code covered by this table.

  • access: protected
Methods
Constructor __construct (line 143)

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_TrimmedTable __construct (string $cmapData)
  • string $cmapData: Raw binary cmap table data.

Redefinition of:
Zend_Pdf_Cmap::__construct()
Object constructor
getCoveredCharacters (line 122)

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 107)

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 78)

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 Wed, 21 Feb 2007 12:01:13 -0800 by phpDocumentor 1.3.1