SetaPDF_Core_Font_ToUnicode Helper class to create ToUnicode Mapping Files

File: /SetaPDF v2/Core/Font/ToUnicode.php

See 5099.CMapRessources.pdf and 5411.ToUnicode.pdf

Class hierarchy

Summary

Properties

$_mapping

The given mapping.

$_singleByteMapping

Whenever we create a single byte mapping or a multi(2) byte mapping.


Methods

__construct()

public SetaPDF_Core_Font_ToUnicode::__construct (
array $mapping
)

The SetaPDF_Core_Font_ToUnicode constructor.

Parameters
$mapping : array
 
Exceptions

Throws SetaPDF_Core_Font_Exception

_optimize()

private SetaPDF_Core_Font_ToUnicode::_optimize (
void
): array

Optimizes the mapping data, to make it writable.

create()

public SetaPDF_Core_Font_ToUnicode::create (
void
): string

Creates the mapping steam using the given mapping data.