Docs For Class Zend_Pdf_Cmap_ByteEncoding

## 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) 2006 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
--- | ---
Zend_Pdf_Cmap_ByteEncoding_Static | Custom cmap type used for the Adobe Standard 14 PDF fonts.

Variable Summary
array $_glyphIndexArray
Method Summary
Zend_Pdf_Cmap_ByteEncoding __construct (string $cmapData)
array getCoveredCharacters ()
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:

- Zend_Pdf_Cmap_ByteEncoding_Static::__construct() : Object constructor

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

#### Inherited Constants

Inherited from Zend_Pdf_Cmap

> Zend_Pdf_Cmap::MISSING_CHARACTER_GLYPH
> Zend_Pdf_Cmap::TYPE_BYTE_ENCODING
> Zend_Pdf_Cmap::TYPE_BYTE_ENCODING_STATIC
> Zend_Pdf_Cmap::TYPE_HIGH_BYTE_MAPPING
> Zend_Pdf_Cmap::TYPE_MIXED_COVERAGE
> Zend_Pdf_Cmap::TYPE_SEGMENTED_COVERAGE
> Zend_Pdf_Cmap::TYPE_SEGMENT_TO_DELTA
> Zend_Pdf_Cmap::TYPE_TRIMMED_ARRAY
> Zend_Pdf_Cmap::TYPE_TRIMMED_TABLE
> Zend_Pdf_Cmap::TYPE_UNKNOWN

Documentation generated on Sun, 29 Oct 2006 21:27:02 -0600 by phpDocumentor 1.3.0RC6