setasign\SetaPDF2\Core\Font\Cmap
Cmap Class representing a CMAP.
File: /SetaPDF v2/Core/Font/Cmap/Cmap.php
Old class name (alias):
\SetaPDF_Core_Font_Cmap
This class includes a very simple parser for CID data. The extracted data are limited to unicode and cid mappings.
Class hierarchy
Implements
Summary
Static Properties
$cmapDirectory
static public Cmap::$cmapDirectory = '/app/library/SetaPDF/Core/Font/Cmap/_cmaps'
Properties
Static Methods
_readValue()
protected static Cmap::_readValue (
\setasign\SetaPDF2\Core\Tokenizer $tokenizer
): array|string|falseRead the next value via the tokenizer instance.
Parameters
- $tokenizer : \setasign\SetaPDF2\Core\Tokenizer
cleanUpNamedInstanceCache()
Remove named cmap instances from the local cache.
Parameters
- $name : ?string
The name or null for all cached instances
createNamed()
Creates an instance of an existing CMAP.
Existing CMAPs can be found in /SetaPDF/Font/Cmap/_cmaps/. A named instance will be cached. To remove it from memory you will need to call Cmap::cleanUpNamedInstanceCache().
Parameters
- $name : string
- $cache : bool
This parameter will write a serialized version into the cmaps folder.
Exceptions
Methods
addCidRangeMapping()
Add a cid range mapping.
Parameters
- $src1 : int
- $src2 : int
- $dst : int
- $size : int